|
|
|
@ -2,6 +2,9 @@
|
|
|
|
|
Bot commands.
|
|
|
|
|
"""
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
from random import choice
|
|
|
|
|
|
|
|
|
|
from discord import Embed, Intents
|
|
|
|
@ -351,3 +354,13 @@ async def news(bot: object, *options: str) -> None:
|
|
|
|
|
embed.add_field(name='---', value='---')
|
|
|
|
|
|
|
|
|
|
return await bot.send(f'**`News`**', embed=embed)
|
|
|
|
|
|
|
|
|
|
@client.command(aliases=['nf', 'nfetch'])
|
|
|
|
|
async def neofetch(bot: object) -> str:
|
|
|
|
|
"""
|
|
|
|
|
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')
|
|
|
|
|
nfetch = nfetch.read()
|
|
|
|
|
return await bot.send("```\n" + nfetch + "\n```")
|