Remove !help and fix duplicate !strinova
This commit is contained in:
1 parent
3a40e8be75
commit
63e3ec7222
3 files changed
+2
-11
No files matched your search
@@ -20,5 +20,4 @@ Personal Discord bot running on my Arch Linux laptop. Named after Hayase Yuuka.
|
|||||||
|
|
||||||
- `!music` — full music command list
|
- `!music` — full music command list
|
||||||
- `!sysinfo` — full sysinfo command list
|
- `!sysinfo` — full sysinfo command list
|
||||||
- `!gifs` — full gif list
|
- `!gifs` — full gif list
|
||||||
- `!help` — everything else
|
|
||||||
@@ -97,15 +97,6 @@ class SysInfo(commands.Cog):
|
|||||||
count = data['response']['player_count']
|
count = data['response']['player_count']
|
||||||
await ctx.reply(f'🎮 Strinova — {count:,} players online right now')
|
await ctx.reply(f'🎮 Strinova — {count:,} players online right now')
|
||||||
|
|
||||||
#this is unrelated, strinova player count tracker
|
|
||||||
#i just couldnt be assed with it lol
|
|
||||||
@commands.command()
|
|
||||||
async def strinova(self, ctx):
|
|
||||||
async with aiohttp.ClientSession() as session:
|
|
||||||
async with session.get('https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/?appid=1282270') as r:
|
|
||||||
data = await r.json()
|
|
||||||
count = data['response']['player_count']
|
|
||||||
await ctx.reply(f'🎮 Strinova — {count:,} players online right now')
|
|
||||||
|
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
await bot.add_cog(SysInfo(bot))
|
await bot.add_cog(SysInfo(bot))
|
||||||
@@ -14,6 +14,7 @@ intents = discord.Intents.default()
|
|||||||
intents.message_content = True
|
intents.message_content = True
|
||||||
|
|
||||||
bot = commands.Bot(command_prefix='!', intents=intents)
|
bot = commands.Bot(command_prefix='!', intents=intents)
|
||||||
|
bot.remove_command('help')
|
||||||
|
|
||||||
forwarder = TelegramForwarder(
|
forwarder = TelegramForwarder(
|
||||||
token=os.getenv('TELEGRAM_BOT_TOKEN'),
|
token=os.getenv('TELEGRAM_BOT_TOKEN'),
|
||||||
|
|||||||
Reference in new issue
Block a user