From dd6bf2d89c669610fcb2387890ab747f893f0b91 Mon Sep 17 00:00:00 2001 From: redcreeper14385 Date: Tue, 31 Aug 2021 17:42:29 +0100 Subject: Rename some things --- cogs/about.py | 21 --------------------- cogs/utils.py | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 cogs/about.py create mode 100644 cogs/utils.py (limited to 'cogs') diff --git a/cogs/about.py b/cogs/about.py deleted file mode 100644 index c9ed7e1..0000000 --- a/cogs/about.py +++ /dev/null @@ -1,21 +0,0 @@ -import discord -from discord.ext import commands - -class About(commands.Cog): - def __init__(self, bot): - self.bot = bot - - @commands.command(name="about", brief="Gives information about the bot.", help="Gives information about the bot.") - async def about(self, ctx): - embed = discord.Embed(title="Tiny Potato Bot", - description="The creator of Tiny Potato Bot is mounderfod (aka redcreeper14385), find him here:", - color=0xa37dca) - embed.add_field(name="GitHub", value="https://github.com/redcreeper14385", inline=False) - embed.add_field(name="Twitch", value="https://twitch.tv/mounderfod", inline=False) - embed.add_field(name="Discord", value="mounderfod#4179", inline=False) - embed.add_field(name="Reddit", value="https://www.reddit.com/user/mounderfod", inline=False) - embed.set_footer(text="Tiny Potato Bot v1.0.0") - await ctx.send(embed=embed) - -def setup(bot): - bot.add_cog(About(bot)) \ No newline at end of file diff --git a/cogs/utils.py b/cogs/utils.py new file mode 100644 index 0000000..c06049b --- /dev/null +++ b/cogs/utils.py @@ -0,0 +1,21 @@ +import discord +from discord.ext import commands + +class Utils(commands.Cog): + def __init__(self, bot): + self.bot = bot + + @commands.command(name="about", brief="Gives information about the bot.", help="Gives information about the bot.") + async def about(self, ctx): + embed = discord.Embed(title="Tiny Potato Bot", + description="The creator of Tiny Potato Bot is mounderfod (aka redcreeper14385), find him here:", + color=0xa37dca) + embed.add_field(name="GitHub", value="https://github.com/redcreeper14385", inline=False) + embed.add_field(name="Twitch", value="https://twitch.tv/mounderfod", inline=False) + embed.add_field(name="Discord", value="mounderfod#4179", inline=False) + embed.add_field(name="Reddit", value="https://www.reddit.com/user/mounderfod", inline=False) + embed.set_footer(text="Tiny Potato Bot v1.0.0") + await ctx.send(embed=embed) + +def setup(bot): + bot.add_cog(Utils(bot)) \ No newline at end of file -- cgit 1.4.1-2-gfad0 tle='author hut <hut@lavabit.com> 2009-11-16 16:41:53 +0100 committer hut <hut@lavabit.com> 2009-11-16 16:41:53 +0100 Initial commit' href='/akspecs/ranger/commit/README?h=v1.1.0&id=712aa449042e5f9cc66277eeb68fa18b5a0c7d57'>712aa449
0298508e ^
712aa449



1
2
3
4
5
6
7
8
9
10
11