Giter Club home page Giter Club logo

rhobot's Introduction

ρbot

This is the code for a simple discord bot.

Getting started

  1. Install node if you haven't already.

  2. Clone this repository and pull the project dependencies:

# in the root directory
npm install
  1. Create a new app-config.yaml file in the root directory to hold the bot's credentials.
# creds.yaml
commandPrefix: <a command prefix other than "!" e.g. "$" to allow you to run your dev bot with different commands>
discordToken: <the token>
steamApiKey: <the key>
battlenetClientKey: <the key>
battlenetClientSecret: <the secret>
dynamodbTable: <DynamoDB table name>
dynamodbRegion: <DynamoDB table region>
discordToken
The Discord bot ClientKey. Get it by setting up a Discord application and adding a bot.
steamApiKey
Steam API Key; get it by setting up an account and registering for an API key in the SteamCommunity.
battlenetClientKey and battlenetClientSecret
BattleNet API credentials. Get them by setting up a BattleNet dev account.
dynamodbTable and dynamodbRegion
The database used by Rhobot. To call against DynamoDB it is expected that AWS credentials will be made available to the process (e.g. by previousy exporting environment variables or using an EC2 instance profile)
  1. To run the server locally, export AWS API credentials and point node at the src directory:
export AWS_ACCESS_KEY_ID=<your AWS public key>
export AWS_SECRET_ACCESS_KEY=<your AWS secret key>
node src/

Additional info

rhobot's People

Contributors

xpcoffee avatar angus-mackenzie avatar

Watchers

James Cloos 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.