Jovantri10 / TodorokiShouto

Discord Bot :v

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

© Jovantri Immanuel Gulo

Todoroki Shouto

Discord Bots

Invite

Invite Me Here

First require for building bot in discord.py

import discord
import os
from discord.ext import commands

todo = commands.Bot(command_prefix="todo.")

Second require for building bot in discord.py

# 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!")

Third require for building bot in discord.py

SECRET = os.environ.get("TOKEN")
todo.login(SECRET)

Token

Dont forget to put you token on .env file

.env

TOKEN=YOU_BOT_TOKEN

Visit Me On top.gg !

Click and Click Here

Fork This Repo 💕

How to fork this repo? Just click here! and fork!

© Jovantri Immanuel Gulo

About

Discord Bot :v


Languages

Language:Python 100.0%