Skip to content
Permalink
Browse files
Create helpbot.py
  • Loading branch information
varapnicks committed Nov 21, 2021
1 parent ee6ed09 commit 57683759da8c111d7ce8fcd2067f0652bdcdb826
Showing 1 changed file with 36 additions and 0 deletions.
@@ -0,0 +1,36 @@
import discord
from discord.ext import commands

def read_token():
with open ("token.txt") as file:
lines = file.readlines()
return lines[0].strip()

token = read_token()

client = discord.Client()


bot = commands.Bot()
bot.remove_command('help')


@bot.command()
async def info(ctx):

await ctx.send(ctx.guild)
await ctx.send(ctx.author)
await ctx.send(ctx.message.id)


@bot.command()
async def help(ctx):
embed = discord.Embed(
title='Movie Bot Commands',
description='Welcome to the Movie Chatbot help section! You will find all the commands that you could use to interact with a chatbot',
color=discord.Colour.gold()
)

await ctx.send(embed=embed)

bot.run(token)

0 comments on commit 5768375

Please sign in to comment.