This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Delete old entries | |
[-HKEY_CLASSES_ROOT\*\shell\Vim] | |
[-HKEY_CLASSES_ROOT\*\shell\Vim\command] | |
; Add sub-menu | |
[HKEY_CLASSES_ROOT\*\shell\Vim] | |
"MUIVerb"="Edit with Vim" | |
"Icon"="write.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord # pip install discord.py | |
import aiohttp, io, base64 | |
### EDIT HERE ### | |
token = '' | |
backend_url = '' | |
################# | |
bot = discord.Client() | |
bot.queue = set() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -a TOKENS=( | |
# insert tokens here, one per line | |
) | |
read -p "Channel ID: " CHANNEL | |
say () { | |
curl -X POST -H "Authorization: $2" -H "User-Agent: thiscanbeanything" -H "Content-Type: application/json" -d "{\"content\": \"$1\"}" https://discordapp.com/api/v6/channels/$CHANNEL/messages --no-progress-meter > /dev/null | |
} | |
sayEach () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# have a file named 'lines' (no extension) with a pre-defined message per line | |
TOKEN="" | |
CHANNEL="" | |
say () { | |
/usr/bin/curl -X POST -H "Authorization: $TOKEN" -H "User-Agent: thiscanbeanything" -H "Content-Type: application/json" -d "{\"content\": \"$1\"}" "https://discordapp.com/api/v6/channels/$CHANNEL/messages" | |
} | |
say "$(sort --random-sort lines | head -n 1)" |