fix
This commit is contained in:
@@ -18,11 +18,10 @@ class Update(commands.Cog):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
res = await self.bot.ch(server_id=context.guild.id)
|
res = await self.bot.ch(server_id=context.guild.id)
|
||||||
channel = self.bot.get_channel(res)
|
if res == "None":
|
||||||
if channel == "None":
|
|
||||||
channel = context
|
channel = context
|
||||||
else:
|
else:
|
||||||
channel = int(channel)
|
channel = self.bot.get_channel(int(res))
|
||||||
await channel.send('restarting...')
|
await channel.send('restarting...')
|
||||||
try:
|
try:
|
||||||
subprocess.run(["git", "pull", "origin", "main"],capture_output=True)
|
subprocess.run(["git", "pull", "origin", "main"],capture_output=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user