Update 1.3

This commit is contained in:
2022-02-10 21:26:16 +02:00
parent f52f9c2281
commit 4362d5cac4
7 changed files with 32 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ except Exception as exp:
from functions import *
pid = os.getpid()
version = 1.2
version = 1.3
if loadJson("config.json")["check_for_updates"]:
try:
@@ -164,18 +164,26 @@ async def on_message(message):
else:
selected_channel = discord.utils.get(message.guild.channels, id=int(fullcmd[1]))
if isinstance(selected_channel, discord.VoiceChannel):
guildConfSet(message.guild, "channel", int(fullcmd[1]))
guildConfSet(message.guild, "channel", int(fullcmd[1]))
await message.channel.send(getMsg("result_channel", message.guild).format(selected_channel.name))
await message.channel.send(getMsg("result_channel", message.guild).format(selected_channel.name))
if guildConfGet(message.guild, "category") is None:
if guildConfGet(message.guild, "category") is None:
await message.channel.send(getMsg("warn_category", message.guild).format(prefix))
await message.channel.send(getMsg("warn_category", message.guild).format(prefix))
else:
print(type(selected_channel))
await message.channel.send(getMsg("warn_text_channel", message.guild))
except Exception as exp:
#print(exp)
print(exp)
await message.channel.send(getMsg("usage_channel", message.guild).format(prefix))
@@ -350,4 +358,4 @@ async def on_message(message):
appendLog(f"Trying to log in...")
client.run(loadJson("config.json")["bot_token"])
client.run(loadJson("config.json")["bot_token"])