https://github.com/ivgiuliani/discord-tfl
Discord TfL bot
https://github.com/ivgiuliani/discord-tfl
discord london tfl tube
Last synced: 12 months ago
JSON representation
Discord TfL bot
- Host: GitHub
- URL: https://github.com/ivgiuliani/discord-tfl
- Owner: ivgiuliani
- License: gpl-3.0
- Created: 2016-10-08T14:22:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-06-04T20:34:46.000Z (about 1 year ago)
- Last Synced: 2025-06-05T02:12:01.614Z (about 1 year ago)
- Topics: discord, london, tfl, tube
- Language: Ruby
- Size: 1.18 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# TfL Discord bot
A Discord bot to query TfL (Transport for London) data through their
public API (https://api.tfl.gov.uk).
This program is not affiliated in any way with TfL.
## Running the bot
You need:
* a client id and a bot token for Discord, you can get them by
registering the application on Discord.
* an application id and key by registering on the TfL API website
Then the bot can be started with (assuming you've set it up it with `bundler`):
env DISCORD_CLIENT_ID='' \
DISCORD_TOKEN='' \
TFL_APPLICATION_ID='' \
TFL_APPLICATION_KEY='' \
bundle exec ruby ./app.rb
Alternatively, you can run the bot via docker:
docker run -t ivgiuliani/discord-tfl \
--env DISCORD_CLIENT_ID= \
--env DISCORD_TOKEN= \
--env TFL_APPLICATION_ID=your tfl app id> \
--env TFL_APPLICATION_KEY=
Once started the bot will announce its invite URL. Follow that link to invite
the bot into channels you administer.
### Building the docker container
There's an x86 image provided by `Dockerfile`. Running
`docker build . -t discord-tfl` will build the image.
## Contributing
Bug reports and pull requests are welcome on GitHub.
## License
The application is available as open source under the terms of the
[GPLv3 licence](http://opensource.org/licenses/GPL-3.0).