© Jovantri Immanuel Gulo
import discord
import os
from discord.ext import commands
todo = commands.Bot(command_prefix="todo.")
# we need event, for reporting if bot is ready
@todo.event()
async def on_ready():
print(f"Loginned as {bot.user.name} - {bot.user.id}")
print(f"Server : {len(bot.guilds)}")
@todo.command()
async def ping(ctx):
await ctx.send("Pong!")
SECRET = os.environ.get("TOKEN")
todo.login(SECRET)
Dont forget to put you token on .env
file
.env
TOKEN=YOU_BOT_TOKEN
Visit Me On top.gg !
How to fork this repo? Just click here! and fork!
© Jovantri Immanuel Gulo