From 57683759da8c111d7ce8fcd2067f0652bdcdb826 Mon Sep 17 00:00:00 2001 From: "Samanta Varapnickaite (varapnicks)" Date: Sun, 21 Nov 2021 21:23:22 +0000 Subject: [PATCH] Create helpbot.py --- helpbot.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 helpbot.py diff --git a/helpbot.py b/helpbot.py new file mode 100644 index 0000000..f624808 --- /dev/null +++ b/helpbot.py @@ -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)