A companion bot for railway users that offers better deployment updates as well as usage stats.
Report Bug/Request features
Table of Contents
RailwayBot is an open source companion bot for railway users, made for fulfilling the needs of knowing if you've got a memory leak, or one of your services has crashed, all from the comfort of discord.
Since this bot is made in typescript, it uses discord.js, and other packages, so make sure you have both node and npm installed.
-
Clone the repo
git clone https://github.com/LaCrak27/RailwayBot.git
-
Install NPM packages
npm i
-
Create an application on discord's developer portal and get it's bot token. (help)
-
Get a railway api token linked to your account. (help)
-
Prepare your enviroment file (
.env
)DISCORDTOKEN=(discord bot token) LOGCHANNEL=(channel id for deployment and crash logs) USAGECHANNEL=(channel id for usage reports) RAILWAYAPIKEY=(railway api key) TEAMID=(Team ID (only populate if you are gonna use a team token))
If you only intend on using the bot, then you can just clone the repository, host it on your hosting platform of choice filling all the enviroment variables (we all know what that platform is don't we), and invite the resulting bot to your server.
After this is done, you need to add a webhook to railway for every project you intend on logging its crashes/deployments. Said webhook must point to "<YourBot's URL>/railway".
- Deploy logs showing all kinds of information about the deploy.
- Crash alerts for any of your services.
- Hourly usage reports, showing a detailed breakdown.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
- $160 USD. You can learn more about them here!