Last active
October 26, 2021 14:54
-
-
Save raghavmri/e50ea610c39ab7609757c98ab1a81c20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
from discord.ext import commands | |
bot = commands.Bot(command_prefix='!') | |
@bot.event | |
async def on_ready(): | |
print('Logged in as') | |
print(bot.user.name) | |
print(bot.user.id) | |
print('------') | |
@bot.command() | |
async def ping(ctx): | |
await ctx.send('Pong! {0}'.format(round(bot.latency, 1))) | |
@bot.command() | |
async def hello(ctx): | |
await ctx.send('Hello Friend') | |
bot.run(" Your Discord Bot Token") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment