Coder Social home page Coder Social logo

makerculture's Introduction

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/applications

Once 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

makerculture's People

Contributors

davidkirwan avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.