Open Timmooo opened 8 years ago
If you have time can you work on this? The main bot file already loads the modules so that won't be needed. It should be able to start the bot in screen as the user running the script without using sudo, there is an example of that in the update.sh script I made. We could roll the update script into it. It should be able to take either a start argument which would run BruhBot.rb or an update argument which runs the code I already made. The bot should only be shutdown from discord using the !shutdown command so that it exits cleanly. The config is already attached to BruhBot.rb, so the start/update script would not need to interact with that.
Ideally this script would be started with crontab upon reboot, but would also function manually as well.
Okay, so ./bruhbot {options}:
Probably won't bother with an initial setup one just yet, but could be easy enough to do to create the config file initially by telling users exactly what they need through some q&a stuff?
Note: I am very verbose sometimes.
Oh and add in a cron option. This checks if the bot is running, and if not, starts it.
Stop would have to kill the bot, same with restart. I have a shutdown command built in and I need to make a restart one. Even the stop command will cancel any other running commands so it isn't perfectly clean, but it does cause the bot to go offline immediately, whereas killing it causes it to linger for a bit. But stop and restart might be good to have anyways. On Jul 3, 2016 7:48 AM, "Tim Riddell" notifications@github.com wrote:
Oh and add in a cron option. This checks if the bot is running, and if not, starts it.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FormalHellhound/BruhBot/issues/25#issuecomment-230149320, or mute the thread https://github.com/notifications/unsubscribe/ALbH3eSBRd4dFFALne2a_G8ktvNWKFhDks5qR6FygaJpZM4IoXD0 .
Probably not super important but I would count this as key functionality.
Initial setup
Starting and stopping the bot
Config file
Will add more to this issue if i think of anything.