Jump to content

Mateus Calendar RP Discord Bot


Recommended Posts

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 by Lililero Bibilero
Link to comment

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

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

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

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

 

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 :D

Link to comment
  • 4 weeks later...
  • 3 months later...
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 by Neneso Neso
Link to comment
  • 7 months later...

Developer diary

As it's been some time, I thought I'd share my progress.
4333f206fc0a74ead968491aa59d8172.png

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

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 by Erah'sae
Link to comment
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

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
  • 5 months later...
  • 4 weeks later...
  • 5 months later...
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).

Link to comment
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
  • 4 weeks later...

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 by Lililero Bibilero
Link to comment
  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...