-
Notifications
You must be signed in to change notification settings - Fork 0
/
Arbitration.py
29 lines (28 loc) · 1.02 KB
/
Arbitration.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 os
import random
import mysql.connector
import asyncio
import requests
import io
import discord
import requests
import json
from discord.ext import commands, tasks
from dotenv import load_dotenv
from itertools import cycle
import aiohttp
def Arbitration():
url='https://api.warframestat.us/pc/arbitration'
with requests.get(url) as response:
python_json_obj = response.text
python_json_obj = json.loads(python_json_obj)
Out = python_json_obj["node"]
Out1 = python_json_obj["enemy"]
Out2 = python_json_obj["type"]
Out3 = python_json_obj["activation"]
Out4 = python_json_obj["expiry"]
Arbitration = 'Ort: '+Out+' ('+Out1+') '+Out2
embed=discord.Embed(title="Arbitration", description="The actual Arbitration", color=0x0080ff)
embed.set_thumbnail(url="https://vignette.wikia.nocookie.net/warframe/images/b/b9/VitusEssence.png/revision/latest?cb=20190923095056")
embed.add_field(name="Ort", value=Arbitration, inline=False)
return(embed)