Exemplo n.º 1
0
 def __init__(self, bot):
     self.bot = bot
     self.sdb = func_database.ServerDatabase()
     self.msg = func_msg_gen.MessageGenerator()
     self.prefix = func_prefix.Prefix()
     self.role_converter = commands.RoleConverter()
     self.channel_converter = commands.TextChannelConverter()
Exemplo n.º 2
0
 def __init__(self, bot):
     self.bot = bot
     self.udb = func_database.UserDatabase()
     self.sdb = func_database.ServerDatabase()
     self.idb = func_database.ItemDatabase()
     self.msg = func_msg_gen.MessageGenerator()
     self.helper = func_setting_helpers.SettingHelper(bot)
Exemplo n.º 3
0
 def __init__(self, bot):
     self.bot = bot
     self.msg = func_msg_gen.MessageGenerator()
     self.bj_reactions = {
         "🇭": "hit",
         "🇸": "stand",
         "🇩": "double down"
     }
     bj_embed = discord.Embed(title="Blackjack:",
                              description=func_economy.bj_string_generator(
                                  self.bj_reactions))
     bj_embed.set_footer(text="Play by pressing with the reactions below:")
     self.bj_embed = bj_embed
     self.udb = func_database.UserDatabase()
     self.cur = bot_settings.currency_name  # TODO: change to use server setting
Exemplo n.º 4
0
 def __init__(self, bot):
     self.bot = bot
     self.sdb = func_database.ServerDatabase()
     self.msg = func_msg_gen.MessageGenerator()
     self.prefix = func_prefix.Prefix()
     self.helper = func_setting_helpers.SettingHelper(bot)
Exemplo n.º 5
0
 def __init__(self, bot):
     self.bot = bot
     self.msg_gen = func_msg_gen.MessageGenerator()
Exemplo n.º 6
0
import ast
import random

import discord
from discord.ext import commands
import os
import traceback
import asyncio

import bot_settings
from functions import func_msg_gen, func_database, func_context, func_prefix, func_logs

MSG_GENERATOR = func_msg_gen.MessageGenerator()

UserDB = func_database.UserDatabase()
ServerDB = func_database.ServerDatabase()
Prefix = func_prefix.Prefix()
Logger = func_logs.Log()


class FullBot(commands.Bot):
    def __init__(self, command_prefix, **options):
        super().__init__(command_prefix, **options)
        self.logger = Logger.logging

    async def get_context(self, message, *, cls=func_context.FullContext):
        return await super().get_context(message, cls=cls)


async def get_prefix(bot, message):
    # gets the bot prefix
Exemplo n.º 7
0
 def __init__(self, bot):
     self.bot = bot
     self.msg_generator = func_msg_gen.MessageGenerator()
     self.cache = None
     self.sdb = func_database.ServerDatabase()
     self.udb = func_database.UserDatabase()
Exemplo n.º 8
0
 def __init__(self, bot):
     self.bot = bot
     self.udb = func_database.UserDatabase()
     self.msg = func_msg_gen.MessageGenerator()
     self.prefix = func_prefix.Prefix()