Skip to content

Tsyhanok-Ivan/custom-game-status-in-discord-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A guide on how to customize your game status in Discord.

Select the language you want

EN English UA Ukrainian

Step 1:

Create an application on the website discord.com/developers

img


Step 2:

Add images

img


Step 3:

Download the library pypresence

pip install pypresence


Step 4:

Get client id

img


Step 5:

Write this code and replace the values with your own values:

from pypresence import Presence
from time import time

presence = Presence("")  # client id here

buttons = [  # maximum 2 buttons
    {
        "label": "Button 1",  # button name
        "url": "https://none.com/"  # button url
    },
    {
        "label": "Button 2",  # button name
        "url": "https://none.com/"  # button url
    }
]


presence.connect()  # connect
presence.update(  # the first line in the status is the application name
    state="status",  # third line in status
    details="details",  # second line in the status
    start=time(),  # start timer
    buttons=buttons,  # button connection
    large_image="img_1",  # large image, enter its name in large_image from step 2
    small_image="img_2",  # small image, enter its name in small_image from step 2
    large_text="large_image_text",  # text when hovering over a large image
    small_text="small_image_text"  # text when hovering over a small image
)

input()

Step 6:

Launch it, my results:

img


Use:

python 3.9 pypresence 4.3.0

About

A guide on how to customize your game status in Discord.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages