Advertisements¶
Information¶
- Name:
pyplanet.apps.contrib.ads
- Depends on:
- Game:
All
Features¶
This app provides buttons, banners and other advertisements assets. For example it shows a Discord logo or a PayPal button. The app has the following features: - Show Discord join button. - Show how many users online in Discord. - Show PayPal donate button. - Random messages at specific times.
Setup Discord:
Get your discord join link and make sure it does not expire.
Get your discord server ID. (you might need to enable developer settings)
Enable the widget of your discord server in the server settings.
Start PyPlanet with this app enabled.
Type //settings and edit two discord related fields (join URL and ID)
Setup PayPal:
Create the PayPal donation link for you server account
Start PyPlanet with this app enabled.
Type //settings and fill the PayPal related field (Donation URL)
Random Message:
Enter the random messages by editing //settings (find the random messages entry). Every line represents one message, you can use any formatting in the messages!
Optionally edit the random messages interval
Commands¶
Display Discord Server Info¶
- Command:
/discord
- Parameters:
None.
- Functionality:
Displays the number of users on the server.
- Required permission:
None.
Display PayPal Link¶
- Command:
/paypal
- Parameters:
None.
- Functionality:
Display the PayPal link in chat.
- Required permission:
None.
Signal handlers¶
Player connect¶
Signal
pyplanet.apps.core.maniaplanet.callbacks.player.player_connect
Functionality:
Displaying widgets