Example #1
0
    def __init__(self, bot):
        self.bot = bot
        self.config = getJSON("config.json")

        self.colors = {
            'DEFAULT': 0x000000,
            'WHITE': 0xFFFFFF,
            'AQUA': 0x1ABC9C,
            'GREEN': 0x2ECC71,
            'BLUE': 0x3498DB,
            'PURPLE': 0x9B59B6,
            'LUMINOUS VIVID PINK': 0xE91E63,
            'GOLD': 0xF1C40F,
            'ORANGE': 0xE67E22,
            'RED': 0xE74C3C,
            'GREY': 0x95A5A6,
            'NAVY': 0x34495E,
            'DARK AQUA': 0x11806A,
            'DARK GREEN': 0x1F8B4C,
            'DARK BLUE': 0x206694,
            'DARK PURPLE': 0x71368A,
            'DARK VIVID PINK': 0xAD1457,
            'DARK GOLD': 0xC27C0E,
            'DARK ORANGE': 0xA84300,
            'DARK RED': 0x992D22,
            'DARK GREY': 0x979C9F,
            'DARKER GREY': 0x7F8C8D,
            'LIGHT GREY': 0xBCC0C0,
            'DARK NAVY': 0x2C3E50,
            'BLURPLE': 0x7289DA,
            'GREYPLE': 0x99AAB5,
            'DARK BUT NOT BLACK': 0x2C2F33,
            'NOT QUITE BLACK': 0x23272A
        }
Example #2
0
    def __init__(self, bot):
        self.bot = bot
        self.config = getJSON("config.json")
        self.players = {}

        self.api_key = os.getenv("api_key")
        self.youtube = discovery.build('youtube',
                                       'v3',
                                       developerKey=self.api_key)
Example #3
0
import os
import sys

import discord
from discord.ext import commands

import json
from utils.data import getJSON

from termcolor import colored
from utils.cli_logging import *


config = getJSON("config.json")

bot = commands.Bot(
    command_prefix=config.prefix,
    prefix=config.prefix,
    owner_id=config.owners,
    case_insensitive=True
)

@bot.event
async def on_ready():                                       # Do this when the bot is logged in
    info(f'Logged in as {bot.user.name} - {bot.user.id}')  # Print the name and ID of the bot logged in.
    return

bot.remove_command('help')
for file in os.listdir("cogs"):
    if file.endswith(".py"):
        name = file[:-3]
Example #4
0
 def __init__(self, bot):
     self.bot = bot
     self.config = getJSON("config.json")
Example #5
0
 def __init__(self, bot):
     self.bot = bot
     self.config = getJSON("config.json")
     self.API_Handler = ImageAPI()
Example #6
0
 def __init__(self, bot):
     self.bot = bot
     self.config = getJSON("config.json")
     self.check_for_change.start()
Example #7
0
 def __init__(self, bot):
     self.bot = bot
     self.config = getJSON("config.json")
     self.API_Handler = ImageAPI()
     self.footerText = "Made with ❤️ by Roxiun, TheSavageTeddy & Imgflip"