fix
This commit is contained in:
1 parent
5a69c82767
commit
d4cc8eaf09
1 file changed
+1
-1
+1
-1
@@ -3,6 +3,7 @@ import discord
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import re
|
import re
|
||||||
import psutil
|
import psutil
|
||||||
|
import aiohttp
|
||||||
|
|
||||||
class SysInfo(commands.Cog):
|
class SysInfo(commands.Cog):
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
@@ -91,7 +92,6 @@ class SysInfo(commands.Cog):
|
|||||||
#holy shit vscode autocomplete knew exactly what i was gonna say wtf;?
|
#holy shit vscode autocomplete knew exactly what i was gonna say wtf;?
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def strinova(self, ctx):
|
async def strinova(self, ctx):
|
||||||
import aiohttp
|
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.get('https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/?appid=1282270') as r:
|
async with session.get('https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/?appid=1282270') as r:
|
||||||
data = await r.json()
|
data = await r.json()
|
||||||
|
|||||||
Reference in new issue
Block a user