Creating a bot for discord so that i can ping the public ip address of the game server im hosting

Been doing some research and i havent found anything that seems to help me out with getting it to run on discord as i cant figure out how to upload the python code let alone get a string of code that will return the requested information so overall i need a lot of help

from requests import get

ip = get(‘https://api.ipify.org’).text
print(‘My public IP address is: {}’.format(ip))

  • Your question lack informations. Where are you in the process ? Did you create a discord bot ? If yes is it running ? Do you have difficulty creating the discord bot or implementing the functionnality you want on it ? What language are you using ? Here is documentation on how to ask a good question : stackoverflow.com/help/how-to-ask

    – 

Leave a Comment