diff --git a/motd b/motd index 9f2f7f3..9f39839 100644 --- a/motd +++ b/motd @@ -5,7 +5,7 @@ █ ▄ █ ▄▄▄█ ▄▄▄█ ▄ ██ █▄▄▄█ ▄▄▄█ █ █ █ █ █▄▄▄█ █▄▄▄█ █▄█ █ █ █▄▄▄ █▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█ -Neeble version: 2022.09.12 +Neeble version: 2023.03.30 You can help the development of neeble in http://vps41059.publiccloud.com.br/neeble-club/neeble Thank you! diff --git a/utils/commands.py b/utils/commands.py index 813a72e..8217dc5 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -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```") \ No newline at end of file