<commit_before>import os
import sys
import time
import shlex
import shutil
import inspect
import discord
import asyncio
import traceback
import json
import io
import cleverbot
import re
import random
import aiohttp
import platform
import wikipedia
import wikipedia.exceptions

from discord import utils
from discord.object import Object
from discord.enums import ChannelType
from discord.voice_client import VoiceClient

from io import BytesIO
from functools import wraps
from textwrap import dedent
from datetime import timedelta
from random import choice, shuffle
from collections import defaultdict
from twitter import Twitter, OAuth, TwitterHTTPError, TwitterStream

from musicbot.playlist import Playlist
from musicbot.player import MusicPlayer
from musicbot.config import Config, ConfigDefaults
from musicbot.permissions import Permissions, PermissionsDefaults
from musicbot.utils import load_file, extract_user_id, write_file, sane_round_int

from . import exceptions
from . import downloader
from .opus_loader import load_opus_lib
from .constants import VERSION as BOTVERSION
from .constants import DISCORD_MSG_CHAR_LIMIT, AUDIO_CACHE_PATH


load_opus_lib()

dis_games = [
    discord.Game(name='with fire'),
    discord.Game(name='with Robin'),
    discord.Game(name='baa'),
    discord.Game(name='Denzel Curry - Ultimate'),
    discord.Game(name='Windows XP'),
    discord.Game(name='Drake - Jumpman'),
    discord.Game(name='with Kyle'),
    discord.Game(name='Super Smash Bros. Melee'),
    discord.Game(name='.help for help!'),
    discord.Game(name='how to lose a phone'),
    discord.Game(name='with memes'),
    discord.Game(name='Sergal'),
    discord.Game(name='Fox'),
    discord.Game(name='Dragon'),
    discord.Game(name='with some floof'),
    discord.Game(name='with Napstabot'),
    discord.Game(name='Doom (1993)'),
    discord.Game(name='Doom (2016)'),
    discord.Game(name='DramaNation'),
    discord.Game(name='browsing 4chan'),
    discord.Game(name="Guns N' Roses"),
    discord.Game(name='vaporwave'),
    discord.Game(name='being wierd'),
    discord.Game(name='stalking Twitter'),
    discord.Game(name='Microsoft Messaging')
]

boi = [
    "https://pravi.us/C0R",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344711943716865/k5BqbxH.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344733242392588/riXIKEq.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344806043058177/Hx06UHz.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344849823203329/2VeEUTS.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344891988410370/fhHuvIP.jpg",
    "known as the faggot called Taicius"
]

tweetsthatareokhand = [
    "http://i.imgur.com/lkMJ1O9.png",
    "http://i.imgur.com/rbGmZqV.png",
    "http://i.imgur.com/hYzNxVR.png",
    "http://i.imgur.com/JuVsIMg.png",
    "http://i.imgur.com/2NYwUcj.png",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222734961442817/uh_semen.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222732260442113/train_of_horses.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222728338636802/they_wshiper.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222725977243650/thats_my_boyfriend.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222723175579650/pinned.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222720667385858/list.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222717743824907/idea_of_music.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222715147550721/goals.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222711867604993/disturbing_fetish.PNG",
#    "here's a message from the coder of this: I FUCKING RAN OUT NEEDS MORE CHEESE",
# not anymore, its like what 21 links 
   "​https://cdn.discordapp.com/attachments/173886531080159234/176425292426903553/f20e683862a17ef49633eed742fc2b22eb17220eef5a1d607cda2e7a7758720b_1.jpg",
    "http://i.imgur.com/m71nJAg.png",
    "http://i.imgur.com/m5fx7U9.png",
    "https://cdn.discordapp.com/attachments/173887966031118336/177518766781890562/your-resistance-only-makes-my-penis-harder.jpg",
    "http://i.imgur.com/21bV05w.png",
    "http://i.imgur.com/7Y94F7L.png"
]

suicidalmemes = [
    "what the hell did you do idiot",
    "wtf ok idiot fool",
    "you killed him nice job.",
    "lmao you killed him gg on your killing :ok_hand:",
    "party on his death? lit",
    "fuckin fag wtf no.... y..."
]

throwaf = [
    "a keyboard",
    "a Playstation 4",
    "a PSP with Crash Bandicoot 2 on it",
    "a fur coat",
    "furtrash called art",
    "a british trash can",
    "a raincoat made with :heart:",
    "some shitty pencil, it's definitely useless",
    "a dragon",
    "a Lightning Dragon",
    "Mαxie",
    "Robin",
    "a water bucket",
    "water",
    "a shamrock shake",
    "flowers",
    "some fisting",
    "a RoboNitori message",
    "a ice cream cone",
    "hot ass pie, and it's strawberry",
    "a strawberry ice cream cone",
    "Visual Studio 2015",
    "Toshiba Satellite laptop with Spotify, Guild Wars 2 and Visual Studio on it",
    "a compass",
    "honk honk",
    "pomfpomfpomf",
    "⑨",
    "a watermelone",
    "FUCKING PAPERCLIP",
    "HTTP Error 403",
    "Error 429",
    "`never`",
    "`an error that should be regretted of`",
    "Georgia",
    "New York",
    "Nevada",
    "Michigan",
    "Florida",
    "California",
    "TEEEEEEXASSSSSSS",
    "a climaxing dragon picture"
    "Nebraska",
    "an ok ok please message",
    "a pleb called EJH2",
    "15 dust bunnies, a water bottle, and a iron hammer to ban people with",
    "a broken glass (dance bitch)",
    "ok ok",
    "allergy pills",
    "a Chocolate Calculator",
    "probably not Bad Dragon toy",
    "aww yiss a piece of WORLD DOMINATION POWER",
    "a prime minister from Canada",
    "Indiana",
    "a coca-cola bottle",
    "a DJ System",
    "a fridge with wifi enabled",
    "a router",
    "a modem box",
    "a Napstabot",
    "another RoboNitori sentence",
    "a phone",
    "a fan",
    "a pair of earphones",
    "Excel document",
    "Paint Tool SAI painting",
    "Word Document",
    "Visual Studio Project",
    "nerd thing",
    "python 3.5 py",
    "fuckin office tool",
    "clippy",
    "dat boi meme",
    "random.jpeg",
    "<NAME>",
    "Deadpool",
    "a Lenovo Keyboard",
    "Life of Pablo",
    "a Mexican called Ambrosio",
    "the most obvious dick master",
    "Motopuffs",
    "Motopuffs",
    "the dick master called Motopuffs",
    "a weeaboo",
    "Ryulise, the stupid smash master",
    "death, at its finest",
    "morth, but not in its final form",
    "some flaccid sword"
]

honkhonkfgt = [
    "https://cdn.discordapp.com/attachments/171655149977206784/179320457600827393/32e.gif",
    "https://www.youtube.com/watch?v=c3vONDqvayo",
    "https://www.youtube.com/watch?v=hdss-U0H7fA"
]

class SkipState:
    def __init__(self):
        self.skippers = set()
        self.skip_msgs = set()

    @property
    def skip_count(self):
        return len(self.skippers)

    def reset(self):
        self.skippers.clear()
        self.skip_msgs.clear()

    def add_skipper(self, skipper, msg):
        self.skippers.add(skipper)
        self.skip_msgs.add(msg)<commit_msg>added more honks<commit_after>import os
import sys
import time
import shlex
import shutil
import inspect
import discord
import asyncio
import traceback
import json
import io
import cleverbot
import re
import random
import aiohttp
import platform
import wikipedia
import wikipedia.exceptions

from discord import utils
from discord.object import Object
from discord.enums import ChannelType
from discord.voice_client import VoiceClient

from io import BytesIO
from functools import wraps
from textwrap import dedent
from datetime import timedelta
from random import choice, shuffle
from collections import defaultdict
from twitter import Twitter, OAuth, TwitterHTTPError, TwitterStream

from musicbot.playlist import Playlist
from musicbot.player import MusicPlayer
from musicbot.config import Config, ConfigDefaults
from musicbot.permissions import Permissions, PermissionsDefaults
from musicbot.utils import load_file, extract_user_id, write_file, sane_round_int

from . import exceptions
from . import downloader
from .opus_loader import load_opus_lib
from .constants import VERSION as BOTVERSION
from .constants import DISCORD_MSG_CHAR_LIMIT, AUDIO_CACHE_PATH


load_opus_lib()

dis_games = [
    discord.Game(name='with fire'),
    discord.Game(name='with Robin'),
    discord.Game(name='baa'),
    discord.Game(name='Denzel Curry - Ultimate'),
    discord.Game(name='Windows XP'),
    discord.Game(name='Drake - Jumpman'),
    discord.Game(name='with Kyle'),
    discord.Game(name='Super Smash Bros. Melee'),
    discord.Game(name='.help for help!'),
    discord.Game(name='how to lose a phone'),
    discord.Game(name='with memes'),
    discord.Game(name='Sergal'),
    discord.Game(name='Fox'),
    discord.Game(name='Dragon'),
    discord.Game(name='with some floof'),
    discord.Game(name='with Napstabot'),
    discord.Game(name='Doom (1993)'),
    discord.Game(name='Doom (2016)'),
    discord.Game(name='DramaNation'),
    discord.Game(name='browsing 4chan'),
    discord.Game(name="Guns N' Roses"),
    discord.Game(name='vaporwave'),
    discord.Game(name='being wierd'),
    discord.Game(name='stalking Twitter'),
    discord.Game(name='Microsoft Messaging')
]

boi = [
    "https://pravi.us/C0R",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344711943716865/k5BqbxH.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344733242392588/riXIKEq.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344806043058177/Hx06UHz.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344849823203329/2VeEUTS.jpg",
    "https://cdn.discordapp.com/attachments/142361999538520065/179344891988410370/fhHuvIP.jpg",
    "known as the faggot called Taicius"
]

tweetsthatareokhand = [
    "http://i.imgur.com/lkMJ1O9.png",
    "http://i.imgur.com/rbGmZqV.png",
    "http://i.imgur.com/hYzNxVR.png",
    "http://i.imgur.com/JuVsIMg.png",
    "http://i.imgur.com/2NYwUcj.png",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222734961442817/uh_semen.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222732260442113/train_of_horses.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222728338636802/they_wshiper.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222725977243650/thats_my_boyfriend.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222723175579650/pinned.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222720667385858/list.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222717743824907/idea_of_music.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222715147550721/goals.PNG",
    "https://cdn.discordapp.com/attachments/173887966031118336/177222711867604993/disturbing_fetish.PNG",
#    "here's a message from the coder of this: I FUCKING RAN OUT NEEDS MORE CHEESE",
# not anymore, its like what 21 links 
   "​https://cdn.discordapp.com/attachments/173886531080159234/176425292426903553/f20e683862a17ef49633eed742fc2b22eb17220eef5a1d607cda2e7a7758720b_1.jpg",
    "http://i.imgur.com/m71nJAg.png",
    "http://i.imgur.com/m5fx7U9.png",
    "https://cdn.discordapp.com/attachments/173887966031118336/177518766781890562/your-resistance-only-makes-my-penis-harder.jpg",
    "http://i.imgur.com/21bV05w.png",
    "http://i.imgur.com/7Y94F7L.png"
]

suicidalmemes = [
    "what the hell did you do idiot",
    "wtf ok idiot fool",
    "you killed him nice job.",
    "lmao you killed him gg on your killing :ok_hand:",
    "party on his death? lit",
    "fuckin fag wtf no.... y..."
]

throwaf = [
    "a keyboard",
    "a Playstation 4",
    "a PSP with Crash Bandicoot 2 on it",
    "a fur coat",
    "furtrash called art",
    "a british trash can",
    "a raincoat made with :heart:",
    "some shitty pencil, it's definitely useless",
    "a dragon",
    "a Lightning Dragon",
    "Mαxie",
    "Robin",
    "a water bucket",
    "water",
    "a shamrock shake",
    "flowers",
    "some fisting",
    "a RoboNitori message",
    "a ice cream cone",
    "hot ass pie, and it's strawberry",
    "a strawberry ice cream cone",
    "Visual Studio 2015",
    "Toshiba Satellite laptop with Spotify, Guild Wars 2 and Visual Studio on it",
    "a compass",
    "honk honk",
    "pomfpomfpomf",
    "⑨",
    "a watermelone",
    "FUCKING PAPERCLIP",
    "HTTP Error 403",
    "Error 429",
    "`never`",
    "`an error that should be regretted of`",
    "Georgia",
    "New York",
    "Nevada",
    "Michigan",
    "Florida",
    "California",
    "TEEEEEEXASSSSSSS",
    "a climaxing dragon picture"
    "Nebraska",
    "an ok ok please message",
    "a pleb called EJH2",
    "15 dust bunnies, a water bottle, and a iron hammer to ban people with",
    "a broken glass (dance bitch)",
    "ok ok",
    "allergy pills",
    "a Chocolate Calculator",
    "probably not Bad Dragon toy",
    "aww yiss a piece of WORLD DOMINATION POWER",
    "a prime minister from Canada",
    "Indiana",
    "a coca-cola bottle",
    "a DJ System",
    "a fridge with wifi enabled",
    "a router",
    "a modem box",
    "a Napstabot",
    "another RoboNitori sentence",
    "a phone",
    "a fan",
    "a pair of earphones",
    "Excel document",
    "Paint Tool SAI painting",
    "Word Document",
    "Visual Studio Project",
    "nerd thing",
    "python 3.5 py",
    "fuckin office tool",
    "clippy",
    "dat boi meme",
    "random.jpeg",
    "<NAME>",
    "Deadpool",
    "a Lenovo Keyboard",
    "Life of Pablo",
    "a Mexican called Ambrosio",
    "the most obvious dick master",
    "Motopuffs",
    "Motopuffs",
    "the dick master called Motopuffs",
    "a weeaboo",
    "Ryulise, the stupid smash master",
    "death, at its finest",
    "morth, but not in its final form",
    "some flaccid sword"
]

honkhonkfgt = [
    "http://i.imgur.com/c53XQCI.gifv",
    "https://www.youtube.com/watch?v=c3vONDqvayo",
    "https://www.youtube.com/watch?v=hdss-U0H7fA",
    "https://www.youtube.com/watch?v=jrTAjJCGrTQ",
    "https://www.youtube.com/watch?v=im3UMwYQHMw",
    "https://www.youtube.com/watch?v=KRKDwG0hlwI",
    "https://www.youtube.com/watch?v=vZUdzaUYaNY",
    "https://www.youtube.com/watch?v=V4QpQsThqFo"
]

class SkipState:
    def __init__(self):
        self.skippers = set()
        self.skip_msgs = set()

    @property
    def skip_count(self):
        return len(self.skippers)

    def reset(self):
        self.skippers.clear()
        self.skip_msgs.clear()

    def add_skipper(self, skipper, msg):
        self.skippers.add(skipper)
        self.skip_msgs.add(msg)
{'fraction_non_alphanumeric': 0.12817284114255417, 'fraction_numerical': 0.09165617337133011, 'mean_word_length': 3.6921641791044775, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 44, 'lorem ipsum': 0, 'www.': 9, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 4, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '569911', 'n_tokens_mistral': 6461, 'n_tokens_neox': 5489, 'n_words': 1162}