コード例 #1
0
async def on_ready():
    logger.log(f"Logged on as {client.user}")
    client.add_cog(Utility(client))
    client.add_cog(AccountLinking(client))
    client.add_cog(Permissions(client))
    client.add_cog(PermLinks(client))
    client.loop.create_task(pushLogLoop())
コード例 #2
0
def setup(client):
  client.add_cog(Fun(client))
  print("fun is online")
コード例 #3
0
ファイル: sql.py プロジェクト: azhang11/bayreachbot
def setup(client):
    client.add_cog(SQLDatabase(client))
コード例 #4
0
ファイル: Temperature.py プロジェクト: NikkolasJ/CodezoneBOT
def setup(client):
    client.add_cog(Events(client))
コード例 #5
0
ファイル: bot.py プロジェクト: Retropen-Bar/smashtheque-bot
import discord
from discord import client
import discord
from discord.ext import commands

from discord import Intents

import os

from smashtheque.smashtheque import Smashtheque
from error_handler import CommandErrorHandler

intents = Intents.none()

intents.messages = True

# make a minimalist bot with cogs
client = commands.Bot(command_prefix='&', intents=intents)

# get BOT_TOKEN from environ

BOT_TOKEN = os.environ.get('BOT_TOKEN')

client.add_cog(Smashtheque(client))
client.add_cog(CommandErrorHandler(client))
client.run(BOT_TOKEN)
コード例 #6
0
def setup(client):
    client.add_cog(standard(client))
コード例 #7
0
def setup(client):
    client.add_cog((colc(client)))
コード例 #8
0
ファイル: faith_rsNewsfeed.py プロジェクト: cattegrin/Faith
def setup(client):
    client.add_cog(RsNewsFeed(client))
コード例 #9
0
def setup(client):
    client.add_cog(CommandList(client))
コード例 #10
0
ファイル: cards.py プロジェクト: weiish/Discord_Bot_Card_Game
def setup(client):
    client.add_cog(Cards(client))
コード例 #11
0
ファイル: afk.py プロジェクト: Poggergg/verrus2
def setup(client):
    client.add_cog(AFK(client))