Basic usage
A simple use of this package
Create a bot.py file
This file define your bot.
import asyncio
import discord
from baseDiscord import BaseBot
class MyBot(BaseBot):
def __init__(self, *args, **kwargs)
super().__init__(*args, **kwargs)
async def on_connect(self):
self.logger("My bot is connected!")
await super().on_connect()
async def on_disconnect(self):
self.logger("My bot is disconnected")
await super().on_disconnect()Create cogs
Create a folder "cogs". In this folder you can create all cogs than you want.
Create a main.py file
This file is the main script to execute. The bot is created in this file.
You are created a minimalist bot ! 😃
Last updated
Was this helpful?