Skip to content

Commit

Permalink
Merge branch 'antonstechde:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
EepyElvyra authored Nov 12, 2021
2 parents 384a6ec + d5d4465 commit 6b8b5f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# antonstechbotv2
![Discord Bots](https://top.gg/api/widget/upvotes/744218316167708773.svg)
- [Invite here](https://top.gg/bot/744218316167708773) (if you don't want to host it yourself)
- [Setup](https://github.com/antonstechde/antonstechbotv2/wiki/Setup)
- [Databases-Stuff](https://github.com/antonstechde/antonstechbotv2/wiki/Databases)
Expand Down
3 changes: 3 additions & 0 deletions cogs/commands.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

import discord
from discord import Embed
from discord.ext.commands import Bot, Cog
Expand Down Expand Up @@ -39,6 +41,7 @@ async def _vote(self, ctx: SlashContext):
@cog_ext.cog_slash(name="shutdown", description="Shuts down the bot",
default_permission=False, permissions=get_admin_permissions())
async def _shutdown(self, ctx: SlashContext):
os.system("git pull")
await ctx.send("Shutting down...")
await self.bot.logout()

Expand Down

0 comments on commit 6b8b5f2

Please sign in to comment.