-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugins.py
29 lines (23 loc) · 860 Bytes
/
Plugins.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import lightbulb
import requests
class CommandsPlugin(lightbulb.Plugin):
@lightbulb.command()
async def h(self, ctx):
await ctx.respond(
"""
**[ By 0xRar ]**
**.h** | list all commands
**.trader** | Information on the current Void Trader offerings, or when he will arrive (pc,ps4,xb1,swi)
"""
)
@lightbulb.command()
async def trader(self, ctx, platform):
trader = requests.get(f'https://api.warframestat.us/{platform}/voidTrader').json()
await ctx.respond(
'Platform: '+platform.upper() +'\n'+
'Name: '+trader['character'] +'\n'+
'Current Location: '+trader['location'] +'\n'+
'Ends: '+trader['endString']
)
def load(bot):
bot.add_plugin("Commands Plugin")