ADD: Neofetch command

pull/3/head
Kamal Curi 2 years ago
parent 619439c8c9
commit 1a81641e39

@ -5,7 +5,7 @@
█ ▄ █ ▄▄▄█ ▄▄▄█ ▄ ██ █▄▄▄█ ▄▄▄█ █ ▄ █ ▄▄▄█ ▄▄▄█ ▄ ██ █▄▄▄█ ▄▄▄█
█ █ █ █ █▄▄▄█ █▄▄▄█ █▄█ █ █ █▄▄▄ █ █ █ █ █▄▄▄█ █▄▄▄█ █▄█ █ █ █▄▄▄
█▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█ █▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█
Neeble version: 2022.09.12 Neeble version: 2023.03.30
You can help the development of neeble in You can help the development of neeble in
http://vps41059.publiccloud.com.br/neeble-club/neeble http://vps41059.publiccloud.com.br/neeble-club/neeble
Thank you! Thank you!

@ -2,6 +2,9 @@
Bot commands. Bot commands.
""" """
import logging import logging
import os
from random import choice from random import choice
from discord import Embed, Intents from discord import Embed, Intents
@ -351,3 +354,13 @@ async def news(bot: object, *options: str) -> None:
embed.add_field(name='---', value='---') embed.add_field(name='---', value='---')
return await bot.send(f'**`News`**', embed=embed) 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```")
Loading…
Cancel
Save