|
|
|
@ -148,7 +148,7 @@ async def delete_quote(bot, _id: int=None) -> str:
|
|
|
|
|
@client.command(aliases=['qstack'])
|
|
|
|
|
async def queue_stack(bot: object) -> str:
|
|
|
|
|
"""
|
|
|
|
|
Displays the 5 quote history stack
|
|
|
|
|
Displays the 5 quote history stack.
|
|
|
|
|
"""
|
|
|
|
|
return await bot.send('A list of the 5 latest message IDs follows:'\
|
|
|
|
|
f' `{",".join(str(q) for q in quote_id_stack[-5:])}`')
|
|
|
|
@ -156,7 +156,7 @@ async def queue_stack(bot: object) -> str:
|
|
|
|
|
@client.command(aliases=['qc', 'cquotes'])
|
|
|
|
|
async def quote_count(bot: object) -> str:
|
|
|
|
|
"""
|
|
|
|
|
Outputs a quote count from the database
|
|
|
|
|
Outputs a quote count from the database.
|
|
|
|
|
"""
|
|
|
|
|
amount = count_quotes()
|
|
|
|
|
msg = f"Quote count: `{amount}`"
|
|
|
|
@ -167,7 +167,7 @@ async def quote_count(bot: object) -> str:
|
|
|
|
|
@client.command(aliases=['v', 'version'])
|
|
|
|
|
async def info(bot: object) -> str:
|
|
|
|
|
"""
|
|
|
|
|
Displays the bot's information
|
|
|
|
|
Displays the bot's information.
|
|
|
|
|
"""
|
|
|
|
|
roles = [r.name for r in bot.author.roles]
|
|
|
|
|
PermStatus = False
|
|
|
|
@ -193,7 +193,7 @@ async def info(bot: object) -> str:
|
|
|
|
|
@client.command(aliases=['w'])
|
|
|
|
|
async def weather(bot: object, *location: str) -> str:
|
|
|
|
|
"""
|
|
|
|
|
Displays the weather information for a given place
|
|
|
|
|
Displays the weather information for a given place.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
if OW_API_CONFIG['api_id'] == 'no':
|
|
|
|
@ -358,7 +358,7 @@ async def news(bot: object, *options: str) -> None:
|
|
|
|
|
@client.command(aliases=['nf', 'nfetch'])
|
|
|
|
|
async def neofetch(bot: object) -> str:
|
|
|
|
|
"""
|
|
|
|
|
Runs neofetch on the host
|
|
|
|
|
Runs neofetch on the host.
|
|
|
|
|
"""
|
|
|
|
|
os.system('neofetch --stdout --disable gpu --disable shell --disable packages --disable resolution --cpu_temp C > /tmp/neofetch')
|
|
|
|
|
nfetch = open('/tmp/neofetch', mode='r')
|
|
|
|
|