Skip to content

Instantly share code, notes, and snippets.

View discord-bottom.js
mods = (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m)
provider = mods.find(m => m?.exports?.default?.getLanguages && Object.keys(m.exports.default.Messages).length).exports.default._provider
strs = mods.find(m => m?.exports?.COMMAND_NICK_SUCCESS)
getGuilds = mods.find(m => m?.exports?.default?.getGuildCount).exports.default.getGuilds
getMutableGuildChannelsForGuild = mods.find(m => m?.exports?.default?.getMutableGuildChannelsForGuild).exports.default.getMutableGuildChannelsForGuild
defaultStrs = provider._context.defaultMessages
newDefaultStrs = {...defaultStrs}
newStrs = {...strs.exports}
@advaith1
advaith1 / intents.md
Last active Sep 16, 2022
Discord Gateway Intents Explainer
View intents.md

Intents Explainer

If you're wondering what Gateway Intents are, what Privileged Intents are, why your bot can't see statuses, or why your bot can't see member joins anymore, then this page should explain it to you!

if you do not know what intents are, please read this entire page

Intro

First, a short explanation of how bots work: bots can make requests over the REST (HTTP) API to retreive information and do actions, and they get real-time updates from Discord in the form of websocket gateway events. They can also fetch server members via the gateway.

Examples of gateway events you are probably familiar with are Message Create (a message was sent) and Guild Member Add (a user joined a server).

@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active Sep 25, 2022
Simple Github -> Discord webhook
View Github Webhook Tutorial.md

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
@EvgenyOrekhov
EvgenyOrekhov / A simple Docker and Docker Compose install script for Ubuntu.md
Last active Aug 11, 2022
A simple Docker and Docker Compose install script for Ubuntu
View A simple Docker and Docker Compose install script for Ubuntu.md

A simple Docker and Docker Compose install script for Ubuntu

Usage

  1. sh install-docker.sh
  2. log out
  3. log back in

Links

@wdullaer
wdullaer / install.sh
Last active Sep 21, 2022
Install Latest Docker and Docker-compose on Ubuntu
View install.sh
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"