Fixed bidding, while not being in raid (Nolonger throws an error)

Added default alias !list for !loot (bebot like)
Changed the layout of !notes, its more compact now.
fixed !count in the rare case of an empty private channel
This commit is contained in:
2021-08-15 15:47:06 +02:00
parent 46d0ba3634
commit d0c8c1744c
6 changed files with 32 additions and 33 deletions
+5 -4
View File
@@ -121,15 +121,16 @@ class OnlineController:
params = [self.bot.name, self.bot.get_char_id()]
if not option:
option = "prof"
output = ""
if option == "prof":
return self.online_display.count_prof(query, params, filters)
output = self.online_display.count_prof(query, params, filters)
elif option == "org":
return self.online_display.count_org(query, params, filters)
output = self.online_display.count_org(query, params, filters)
elif option == "tl":
if filters:
try:
filters = int(filters)
except ValueError:
return f"Invalid Title level: {filters}"
return self.online_display.count_tl(query, params, filters)
output = self.online_display.count_tl(query, params, filters)
return output if output != "" else "Nobody is in my private channel, sorry..."