Please post actual code instead of pictures. Pictures are hard to read.
ohh okayy here you go @JeremyLT
import os
import discord
import requests
import json
client = discord.Client()
def get_insult():
response = requests.get("https://evilinsult.com/generate_insult.php?lang=en&type=json")
json_data = json.loads(response.text)
insult = json_data [0] ['i']
return (insult)
@client.event
async def on_ready():
print('Suck my balwss UwU senpai san im {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('uwu degrade me'):
insult = get_insult()
await message.channel.send(insult)
my_secret = os.environ['token']
client.run(os.getenv('token'))
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.