Kakama Kama Posted January 9, 2018 Share #1 Posted January 9, 2018 (edited) Forewarning: The bot is very much still being worked on. Changes and updates will be posted here as they happen. Currently hosted on AWS: the bot should be up 99% of the time. To add the discord bot to a channel you must have "Manage Channel" permissions and follow the below link. https://discordapp.com/oauth2/authorize?&client_id=398617953999781900&scope=bot&permissions=0 Once it's there, give it a role to prevent it from talking in channels you don't want it interacting with. Planned features: Daily notifications automatically. Timezone Indicator Option to notify when an event is starting If you have any suggestions or features you want added, don't hesitate to ask! If you want to offer to assist with the programming side of things, don't hesitate to contact me on TheLaladome#8597 Current Commands !monday !tuesday !wednesday !thursday !friday !saturday !sunday !day !tomorrow !help !addhelp !add Changelog 10th 1st 2018 Added !day feature Reduced slow event posting time down to a respectable timeframe. Fixed bug that made !week post only to Tuesday 12th 1st 2018 Added dates to all logs. 7th 6th 2018 Added !tomorrow command. 22nd 1st 2019 Added !day specific commands Removed !tomorrow bug Removed !week 23nd 2nd 2020 Bot is now active 24/7 15th 3rd 2020 Bot now has the commands: !addhelp !add !help Known Bugs: Using !day and !week or any commands at the same time causes the program to get confused. Wait for the 'end of post' message before requesting another. The code to separate words eg: 'lavender beds' is not working Edited March 15, 2020 by Lililero Bibilero 1 Link to comment
Unnamed Mercenary Posted January 9, 2018 Share #2 Posted January 9, 2018 Is there a particular calendar the bot uses? Also what's required to get it running? Does it have any particular OS/database requirements? Link to comment
Kakama Kama Posted January 10, 2018 Author Share #3 Posted January 10, 2018 Is there a particular calendar the bot uses? Also what's required to get it running? Does it have any particular OS/database requirements? https://calendar.google.com/calendar?cid=cDdsdDE5bWlndHBjdWdjdHRtNzJvNmNyMm9AZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ We're using the mateus google calender here. I use the ical export, similar to that of the balmung calender. I plan to make it modular, so it can be used for any calendar. Link to comment
Unnamed Mercenary Posted January 10, 2018 Share #4 Posted January 10, 2018 Is there a particular calendar the bot uses? Also what's required to get it running? Does it have any particular OS/database requirements? https://calendar.google.com/calendar?cid=cDdsdDE5bWlndHBjdWdjdHRtNzJvNmNyMm9AZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ We're using the mateus google calender here. I use the ical export, similar to that of the balmung calender. I plan to make it modular, so it can be used for any calendar. That link doesn't appear to be working for me. Is it the same one as the tumblr? https://mateusrpcalendar.tumblr.com I'd love to get it importing on the new RPC site as well. As for hosting, perhaps we can PM on here (or move to discord from there) on hosting requirements. As offered to Erah'sae, if we can get it running on RPC's servers, then we could help out with some of the hosting burden. (Depending on data storage/bandwidth needed). Link to comment
Kakama Kama Posted January 10, 2018 Author Share #5 Posted January 10, 2018 Is there a particular calendar the bot uses? Also what's required to get it running? Does it have any particular OS/database requirements? https://calendar.google.com/calendar?cid=cDdsdDE5bWlndHBjdWdjdHRtNzJvNmNyMm9AZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ We're using the mateus google calender here. I use the ical export, similar to that of the balmung calender. I plan to make it modular, so it can be used for any calendar. That link doesn't appear to be working for me. Is it the same one as the tumblr? https://mateusrpcalendar.tumblr.com I'd love to get it importing on the new RPC site as well. As for hosting, perhaps we can PM on here (or move to discord from there) on hosting requirements. As offered to Erah'sae, if we can get it running on RPC's servers, then we could help out with some of the hosting burden. (Depending on data storage/bandwidth needed). Correct, same as the tumblr. It works for discord bots fine, the thing is I need access to the back end(To make updates to it). It additionally needs to have node.js, the language I programmed in. It's basically similar to any app on your phone. You turn it on and it's on. I run it in the background fine. The thing is it's only on when I'm online, as I'm the only one with the code. As for your calendar on here, that's easy enough to do. Link to comment
Unnamed Mercenary Posted January 10, 2018 Share #6 Posted January 10, 2018 Is there a particular calendar the bot uses? Also what's required to get it running? Does it have any particular OS/database requirements? https://calendar.google.com/calendar?cid=cDdsdDE5bWlndHBjdWdjdHRtNzJvNmNyMm9AZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ We're using the mateus google calender here. I use the ical export, similar to that of the balmung calender. I plan to make it modular, so it can be used for any calendar. That link doesn't appear to be working for me. Is it the same one as the tumblr? https://mateusrpcalendar.tumblr.com I'd love to get it importing on the new RPC site as well. As for hosting, perhaps we can PM on here (or move to discord from there) on hosting requirements. As offered to Erah'sae, if we can get it running on RPC's servers, then we could help out with some of the hosting burden. (Depending on data storage/bandwidth needed). Correct, same as the tumblr. It works for discord bots fine, the thing is I need access to the back end(To make updates to it). It additionally needs to have node.js, the language I programmed in. It's basically similar to any app on your phone. You turn it on and it's on. I run it in the background fine. The thing is it's only on when I'm online, as I'm the only one with the code. OK, cool, I can at least make sure events are synced. I think we use a couple node.js things on the newer server for some wiki modules, so running shouldn't be too hard. The plan's to move RPC from a personal account into a more generic one that's easier to manage. Backend access once that migration occurs is something we could probably do. Or we could act as as a production environment or something similar. Link to comment
Kakama Kama Posted January 10, 2018 Author Share #7 Posted January 10, 2018 OK, cool, I can at least make sure events are synced. I think we use a couple node.js things on the newer server for some wiki modules, so running shouldn't be too hard. The plan's to move RPC from a personal account into a more generic one that's easier to manage. Backend access once that migration occurs is something we could probably do. Or we could act as as a production environment or something similar. No problem. Once I have the list of features above all done, it will be as simple as exporting an ical, and putting it into the folder, then you'd just need to restart the bot every time you made an update. This is still WAAAY down the line. But once that's done, this bot can basically function as any rp servers calendar bot so long as someone hosts it Link to comment
Kakama Kama Posted January 10, 2018 Author Share #8 Posted January 10, 2018 Changelog 10th 1st 2018 Added !day feature Reduced slow event posting time down to a respectable timeframe. Fixed bug that made !week post only to Tuesday Link to comment
Kakama Kama Posted January 11, 2018 Author Share #9 Posted January 11, 2018 Known bugs: Using !day and !week or any commands at the same time causes the program to get confused. Wait for the 'end of post' message before requesting another. Changelog 12th 1st 2018 Added dates to all logs. Link to comment
Erah'sae Posted January 15, 2018 Share #10 Posted January 15, 2018 Congratulations on getting this one up and running. Let me know if you need any further help. Collaboration is a fun thing. Link to comment
Kakama Kama Posted January 15, 2018 Author Share #11 Posted January 15, 2018 Congratulations on getting this one up and running. Let me know if you need any further help. Collaboration is a fun thing. Will do! Link to comment
Kakama Kama Posted February 13, 2018 Author Share #12 Posted February 13, 2018 It may be possible to set up the mateus rp bot in one of these group things. I will be looking into it. Current plans: add an !addevent command add a !removeevent command Add the ability to post once a day at a specific time. Link to comment
Kakama Kama Posted June 7, 2018 Author Share #13 Posted June 7, 2018 (edited) A new command for the bot has been added to circumvent my timezone. !tomorrow will give the next day's events(Unless it's sunday, I'm not sure what will happen then) Additionally, the bot may be late to come online, as I still need to find time to convert it into 99% runtime. Until then it is beholden to my online time. Edited June 7, 2018 by Neneso Neso Link to comment
Kakama Kama Posted January 22, 2019 Author Share #14 Posted January 22, 2019 Developer diary As it's been some time, I thought I'd share my progress. Currently, I am trying to await messages when a user types !add. But all the asynchronous options don't work nestled in !add. I've tried making it a function, or a while, or even outside the message listener. 2.0 will have two key features when I iron out the bugs: 1: adding events 2: fortnightly events/monthly events I'm still working on things, but note.js doesn't have as much documentation on discord bots. Another downside to the language I chose over a year ago. For now, v1.2 will have the following updates: -Call a specific day with !day eg !monday. This change will be live tomorrow. Link to comment
Erah'sae Posted January 26, 2019 Share #15 Posted January 26, 2019 (edited) You might find some good documentation on the discord.js framework for node.js here: https://discord.js.org/#/docs/main/stable/general/welcome It's been most helpful for the other discord bot I worked on for my EvE crew. They also have a support discord for discord.js here: https://discord.gg/bRCvFy9 I've been considering porting the FFXIV Event Calendar bot from .NET to this framework for added portability. Hope that helps. ~ Erah'sae Edited January 26, 2019 by Erah'sae Link to comment
Kakama Kama Posted January 26, 2019 Author Share #16 Posted January 26, 2019 5 hours ago, Erah'sae said: You might find some good documentation on the discord.js framework for node.js here: https://discord.js.org/#/docs/main/stable/general/welcome It's been most helpful for the other discord bot I worked on for my EvE crew. They also have a support discord for discord.js here: https://discord.gg/bRCvFy9 I've been considering porting the FFXIV Event Calendar bot from .NET to this framework for added portability. Hope that helps. ~ Erah'sae That's IMMENSELY helpful! Thank you! Link to comment
Erah'sae Posted January 26, 2019 Share #17 Posted January 26, 2019 Glad to help! Node.js and Discord.js are probably two of the best supported frameworks for this sort of stuff. The community is solid enough behind them to make me get over my hatred of typeless languages. Link to comment
Kakama Kama Posted January 27, 2019 Author Share #18 Posted January 27, 2019 9 hours ago, Erah'sae said: Glad to help! Node.js and Discord.js are probably two of the best supported frameworks for this sort of stuff. The community is solid enough behind them to make me get over my hatred of typeless languages. Link to comment
Kakama Kama Posted July 17, 2019 Author Share #19 Posted July 17, 2019 Just a general update. The bot is functioning as per normal. I have some plans for the coming future, hopefully during the coming months. Link to comment
Kakama Kama Posted August 14, 2019 Author Share #20 Posted August 14, 2019 Developer diary I have managed to get node working on my phone. If all goes well tomorrow, the bot will soon have 24/7 uptime. Additionally, I am planning on working on the !addevent command as well. Link to comment
Kakama Kama Posted January 27, 2020 Author Share #21 Posted January 27, 2020 Developer diary Long time coming but attempts ended up nearly giving my phone a virus. Bot is still alive, for now I am looking into possible hosting servers. Link to comment
Unnamed Mercenary Posted January 27, 2020 Share #22 Posted January 27, 2020 5 hours ago, Lililero Bibilero said: I am looking into possible hosting servers Depending on your access and bandwidth/cpu requirements, we could potentially host this off RPC's AWS server. Alternatively, I run a small discord bot off Google's GCP free tier which gets the job done for it nicely. (As long as you don't need to run anything -too- RAM intensive, as the specs are somewhat low). 1 Link to comment
Kakama Kama Posted January 28, 2020 Author Share #23 Posted January 28, 2020 On 1/28/2020 at 1:24 AM, Unnamed Mercenary said: Depending on your access and bandwidth/cpu requirements, we could potentially host this off RPC's AWS server. Alternatively, I run a small discord bot off Google's GCP free tier which gets the job done for it nicely. (As long as you don't need to run anything -too- RAM intensive, as the specs are somewhat low). That could work great actually. It's only a small bot. The issue is it currently requires a lot of manual management. I'm moving at the moment, but I will definitely contact you once I have the bot self sufficient. Link to comment
Kakama Kama Posted February 23, 2020 Author Share #24 Posted February 23, 2020 (edited) Good news! I've found a provider for the bot. I just made my own AWS server. I'm still getting things set up but not only is this able to update the bot easily if I need to make modifications: it should be up 24/7! It took some finagling but since I know amazon AWS due to my university work I went for it. With this set up, and with my soon to be moved into my new home: I'll be able to make the discord bot truly what it can be. Update: Bot is now online and should never go offline now! Edited February 23, 2020 by Lililero Bibilero 1 Link to comment
Kakama Kama Posted March 14, 2020 Author Share #25 Posted March 14, 2020 The bot will be offline today while I work on it. Link to comment
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now