ScriptsM AOP Discord Bot
Hello! Today i'm releasing discord bot + script that allows you to automatically send AOP polls at certain time, day of week by bot. Poll have percent bar for every option, count of player that voted for one options and whole player count that voted. players can vote only for one option. In time that you configured poll is finishing and sending poll results, then showing it on server.
Installation
Download a resource (opens in a new tab) from keymaster or buy it by buttons at the top
Install all resource dependencies
Install on linux to run 24/7
After installing all dependencies, in cmd type: screen -S [Name of screen you want]
That command create a screen to run our bot 24/7. Then hit space 3 times and type python3 aop2.py
There you go! Now you have installed bot!
Config
There you can find an config of resource with description for all params
config_options = { # Add poll options here.
'🇦': 'West LS & DownTown',
'🇧': 'South LS & East LS',
'🇨': 'DownTown & South LS',
'🇩': 'Sandy Shores & Grapeseed & Harmony',
'🇪': 'Grapeseed & Paleto Bay'
}
weekend_days = {5, 6} # 1: Sunday 2: Monday, etc to 6.
bot_token = "" # Insert your bot token. Can be find in https://discord.com/developers/applications. Go to bot and hit "Reset Token"
guild_id = # Click on your server, then click copy server id at the bottom
poll_role = # your poll role
poll_hour = 17 #Insert hour to send poll to channel.
aop_channel = 'aop' #insert your aop channel to send poll
aop_end_channel = 'aop-end' # insert your aop-end channel where bot can take result of aop to transfer it to game. ALL MESSAGES FROM THIS CHANNEL TRANSFERING INTO GAME! MAKE SURE IT'S AVAILABLE ONLY FOR STAFF
result_wait = 3600 # In seconds. 3600 is 1 hour