GithubHelp home page GithubHelp logo

alasbot's Introduction

Alasbot

This is a simple discord bot to let people ask for the status of a 7 days to die server.

Prerequisited

To run this, you will need:

  • A 7 days to die server
  • Some place to run the software
  • A discord bot token (Needs to be able to read and send messages)

Running the bot

Run locally

  • Compile: go build -o bot.exe cmd/bot/main.go
  • Set environment variables
    • SEVEN_DAYS_SERVER="<hostname>:<port>"
    • BOT_TOKEN="Bot <bot token>"
  • Run bot.exe

Running on heroku

  • Check this project out
  • Make an account on heroku and install the heroku cli
  • Run heroku login to login (duh)
  • Then run
# heroku create

Creating app... done, ⬢ mystic-wind-83
Created http://mystic-wind-83.herokuapp.com/ | [email protected]:mystic-wind-83.git

# heroku config:set SEVEN_DAYS_SERVER="<hostname>:<port>"
# heroku config:set BOT_TOKEN="Bot <bot token>" 

# git push heroku master

# heroku ps:scale worker=1

Running it somewhere else

If you want to run the bot somewhere else, you're on your own. It should easily run anywhere you can run linux executable.

Adding it to your server

  • Use the discord developer portal to generate a link to add the bot to your discord
  • Use that link, add the bot to your discord
  • It should show as online

Usage

When you enter !server anywhere in your discord it should give you some info.

It should also work in DMs

Any feedback is of course very welcome!

alasbot's People

Contributors

tlanfer avatar

Watchers

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