Skip to content

Instantly share code, notes, and snippets.

View Galaxy-Coding's full-sized avatar
👋

Galaxy-Coding Galaxy-Coding

👋
View GitHub Profile
@GeneralSadaf
GeneralSadaf / List of all bots owned by Discord.md
Last active October 14, 2023 15:49
All official Discord bots I am aware of. This is an unofficial list and may not be kept completely up to date.

Bots for Discord owned servers

Username Description ID Invite
GearBoat#3958 Used for moderation purposes, GearGoat is a custom instance of the public GearBot made by AEntherprise#4693 (106354106196570112) and used in Discord Townhall, Discord Developers, etc. Public instance can be found at: https://gearbot.rocks 520953716610957312 Invite
Discord DevBot#9425 This bot is used in Discord Developers server, answers to frequently asked questions and has some public commands. 545364944258990091 Invite
Developers Role Bot#0397 This bot is used in Discord Developers server to give out roles. 976907566334484590 Invite
DBug#8485 This bot is
// —— This corresponds to the message that was sent by the user to trigger the command
async run(message) {
// —— At the beginning, we are on the first page
let position = 0;
// —— Array of all our pages, a page is an object (an embed)
const pages = [{
title: "This is page 1",
description: "This is an example of a pagination system",
color: "#fcba03"
}, {
@Galaxy-Coding
Galaxy-Coding / Rickroll Prevention.md
Last active August 28, 2021 08:38
Rickroll Prevention

Rickbuster

Made by galaxy#4815

This bot will instantly remove all rickrolls. Sounds simple, right? Are you worried that the bot will be bypassed? That isn't a problem as well. The bot supports redirects and over 50 links! Watch the bot demo

How it works

When you send a rickroll, the bot automatically checks all links. Every link is checked if it redirects to a rickroll. If it redirects to a rickroll, the message will be deleted. Then, the person who sent the rickroll will receive a DM from the bot, including when and where the rickroll was recieved. The bot can't moderate rickrolls in channels that it doesn't have permissions to delete messages in. Therefore, if you don't want the bot to delete messages in rules, just deny the bot's pemission to manage messages in that channel. The bot will also log the attempted rickroll in

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!--code goes here-->
</body>
</html>
@stevecondylios
stevecondylios / resize-image-in-github-issue-github-flavored-markdown.md
Last active May 16, 2024 06:14
How to Resize an Image in a Github Issue (e.g. Github flavored Markdown)

How to Resize an Image in Github README.md (i.e. Github Flavored Markdown)

Percentage:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width=50% height=50%>

Pixels:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width="150" height="280">

// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active June 18, 2024 00:47
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings