|
|
|
@ -75,7 +75,6 @@ async def random_quote(bot: object) -> str:
|
|
|
|
|
return await bot.send('You\'ve got no quotes saved yet.\n(Save quotes by using '\
|
|
|
|
|
'`--q <quote`)')
|
|
|
|
|
|
|
|
|
|
chosen_one = choice(quotes)
|
|
|
|
|
quote_id_stack.append(chosen_one.id)
|
|
|
|
|
|
|
|
|
|
if stack_len >= stack_limit:
|
|
|
|
@ -400,7 +399,7 @@ async def neofetch(bot: object) -> str:
|
|
|
|
|
return await bot.send("```\n" + nfetch + "\n```")
|
|
|
|
|
|
|
|
|
|
@client.command(aliases=['qlb'])
|
|
|
|
|
async def count_leaderboard(bot:object):
|
|
|
|
|
async def count_leaderboard(bot:object) -> str:
|
|
|
|
|
"""
|
|
|
|
|
Returns a list of quoters, sorted by amount of quotes.
|
|
|
|
|
"""
|
|
|
|
@ -411,4 +410,25 @@ async def count_leaderboard(bot:object):
|
|
|
|
|
qlb = qlb + data[0] + " - " + str(data[1]) + "\n"
|
|
|
|
|
qlb = qlb + "```"
|
|
|
|
|
|
|
|
|
|
return await bot.send(qlb)
|
|
|
|
|
return await bot.send(qlb)
|
|
|
|
|
|
|
|
|
|
@client.command(aliases=['dbg'])
|
|
|
|
|
async def neeble_debug(bot:object) -> str:
|
|
|
|
|
"""
|
|
|
|
|
Outputs debug data.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
# TODO: This is repeated role checking code from the deletion function, better make this into one function itself
|
|
|
|
|
roles = [r.name for r in bot.author.roles]
|
|
|
|
|
PermStatus = False
|
|
|
|
|
|
|
|
|
|
if len(PERMISSIONS['dq']) < 1 or not len(set(PERMISSIONS['dq']).intersection(roles)) < 1:
|
|
|
|
|
PermStatus = True
|
|
|
|
|
|
|
|
|
|
if not PermStatus:
|
|
|
|
|
return await bot.send("_And who the fuck do **YOU** think you are!?_.\n"\
|
|
|
|
|
"(You don't have the necessary role for this command)")
|
|
|
|
|
|
|
|
|
|
qt_count = count_quotes()
|
|
|
|
|
st_size = len(quote_id_stack)
|
|
|
|
|
return await bot.send(f"```\nqt_count:{qt_count}\nst_size:{st_size}\nst_limit{stack_limit}\n```")
|