Skip to content

A repository with the necesary files to setup a Discord Rich Precense in your Renpy game

Notifications You must be signed in to change notification settings

bestiannn/Renpy-Discord-Rich-Precense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Renpy Discord Rich Precense

A repository with the necesary files to setup a Discord Rich Precense in your Renpy game.

How to setup

Add the "python-packages" folder in your base game directory, then add the next lines in your "screens.rpy". Check the line 355 of screens.rpy.

init python:
    import time
    initial_time = time.time()

screen main_menu():
    #discord
    python:
        import discord_rpc
        discord_rpc.initialize('ID')
        discord_rpc.update_connection()
        discord_rpc.update_presence(
            **{
                'details': 'TEXT EXAMPLE',
                'start_timestamp': initial_time,
                'large_image_key': 'IMAGE EXAMPLE'
            }
        )
        discord_rpc.update_connection()

About

A repository with the necesary files to setup a Discord Rich Precense in your Renpy game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published