Last active
April 27, 2021 17:11
-
-
Save apoleon33/c1d81db1e29e85f1f74e0ff9a200e244 to your computer and use it in GitHub Desktop.
rickroll using Discord rich presence!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pypresence import Presence | |
from time import* | |
client_id = '836550440661286945' | |
RPC = Presence(client_id) | |
RPC.connect() | |
i=1 | |
while True: | |
while i<10: | |
drip='000'+str(i) | |
RPC.update(large_image=drip, state='you just got rickrolled', | |
buttons = [{"label": "how does it work?", "url": 'https://www.youtube.com/watch?v=WtO3AHMBePY'}],) | |
sleep(0.25) | |
i+=1 | |
i+=1 | |
while i<49: | |
drip='00'+str(i) | |
RPC.update(large_image=drip, state='you just got rickrolled', | |
buttons=[{"label": "how does it work?", "url": 'https://gist.github.com/apoleon33/c1d81db1e29e85f1f74e0ff9a200e244'}],) | |
i+=1 | |
sleep(0.25) | |
sleep(1) | |
i=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment