https://github.com/davidkirwan/makerculture
Discord Bot
https://github.com/davidkirwan/makerculture
discord discord-bot discord-rb docker kubernetes maker openshift ruby
Last synced: 4 months ago
JSON representation
Discord Bot
- Host: GitHub
- URL: https://github.com/davidkirwan/makerculture
- Owner: davidkirwan
- License: lgpl-3.0
- Created: 2019-07-08T22:25:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T20:47:52.000Z (over 1 year ago)
- Last Synced: 2024-04-15T01:52:48.456Z (about 1 year ago)
- Topics: discord, discord-bot, discord-rb, docker, kubernetes, maker, openshift, ruby
- Language: Ruby
- Homepage:
- Size: 12.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
- Changelog: CHANGELOG
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
== Makerculture Discord Bot ==
This Discord bot is built using https://github.com/meew0/discordrb and requires a Discord Bot token. If you don't yet have a token to put in here, you will need to create a bot account here: https://discordapp.com/developers/applicationsOnce you have the token place it into a file named *discord_token.txt*
=== Deploy on Kubernetes/Openshift ===
To deploy the bot onto Kubernetes/Openshift, ensure you are first logged into the cluster. Create a project/namespace called _makerculture_. eg:----
oc new-project makerculture# or
kubectl create namespace makerculture
----Then get your discord token, and replace the value _XXXX_ with the token inside the _kubernetes/discord_token_configmap.yaml_ file. Then create
the configmap with:----
oc apply -f kubernetes/discord_token_configmap.yaml
oc apply -f kubernetes/gab_token_configmap.yaml# or
kubectl apply -f kubernetes/discord_token_configmap.yaml
kubectl apply -f kubernetes/gab_token_configmap.yaml
----Then create the deployment for the bot via:
----
oc apply -f kubernetes/deployment.yaml# or
kubectl apply -f kubernetes/deployment.yaml
----This should bring up a pod which run the bot.
=== Local Dev ===
For local development the following few commands can come in useful.==== Build it ====
To build the docker image use the following:----
make build
----==== Run it ====
To run the bot then, once the *discord_token.txt* file has been populated, it will be picked up and passed into the container automatically. Simply do the following to run the bot:----
make run
----