This file contains hidden or 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
//Constants | |
const Discord = require("discord.js"); | |
const client = new Discord.Client(); | |
//Variables | |
var issues = new Array(); | |
//Start event | |
client.on("ready", () => { | |
This file contains hidden or 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
#Imports | |
import Tkinter | |
import socket | |
import threading | |
#Tkinter | |
root = Tkinter.Tk() | |
root.title("Socket console") | |
#Sockets |
This file contains hidden or 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
// Half-Life Discord Cleverbot bot | |
var Discord = require("discord.js"); | |
var bot = new Discord.Client(); | |
var cleverbot = require("cleverbot.io") | |
// Cleverbot | |
var cleverbot = new cleverbot("API_USER", "API_KEY") | |
// Startup message | |
bot.on("ready", () => { |
This file contains hidden or 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
# Imports | |
from bs4 import BeautifulSoup | |
import string | |
from urllib.request import urlopen | |
import time | |
import nltk | |
import json | |
def crawl(): | |
''' Crawls lyrics on www.azlyrics.com ''' |
This file contains hidden or 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
# Recursively converts flac to mp3 | |
# Imports | |
import os | |
import itertools | |
import ffmpy | |
import glob | |
# Directory for mp3 files | |
mp3_dir = os.path.join(os.getcwd(), "mp3") |
This file contains hidden or 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
# -- Commands -- # | |
async def command_meme(self, keywords: list, channel: discord.Channel): | |
"""Sends closest matching meme to channel""" | |
matching = [] | |
Meme = collections.namedtuple("Meme", ["matches", "filename", "path"]) | |
# Populate list of matching memes with `Meme` named tuples | |
for meme_path in self.memes: |
This file contains hidden or 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
All my gists have the Apache 2.0 license on them. Use them at will! |
This file contains hidden or 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 string | |
import unidecode | |
NUMBERS = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"] | |
def emojify(text): | |
"""Converts text to regional indicators for use in discord""" | |
emojified = "" |
This file contains hidden or 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
//Constants | |
const Discord = require("discord.js"); | |
const Fs = require("fs") | |
const client = new Discord.Client(); | |
//Variables | |
var issues = new Array(); | |
var users = new Array(); | |
//Classes |
This file contains hidden or 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 arcade | |
import time | |
import glob | |
from PIL import Image | |
from PIL import ImageSequence | |
import os | |
import shutil | |
def split_textures(path): |
OlderNewer