Jump to content
Spoiler Policy - Patch 4.5 Content Read more... ×
Neneso Neso

mateus 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.

 

As I don't currently have the bot up on a server, it additionally will only be available when I'm online. I'm looking into hosting options, but I want to get all the functions into the bot first before I put it on a server. If you do, however, know a good free hosting option, let me know. If the bot is offline, it's offline.

 

The bot uses this calendar: https://mateusrpcalendar.tumblr.com

 

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.
  •  99% uptime.
  •  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
  • !day
  • !tomorrow

 

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

 

 

 

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.
Edited by Neneso Neso

Share this post


Link to post

Is there a particular calendar the bot uses?

 

Also what's required to get it running? Does it have any particular OS/database requirements?

Share this post


Link to post

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.

Share this post


Link to post

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).

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

 

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

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

Congratulations on getting this one up and running.  Let me know if you need any further help.   

Collaboration is a fun thing.

Share this post


Link to post

Congratulations on getting this one up and running.  Let me know if you need any further help.   

Collaboration is a fun thing.

Will do!

Share this post


Link to post

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.

 

Share this post


Link to post
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

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post
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!

 

Share this post


Link to post

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.

Share this post


Link to post
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.

❤️

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×