Giter Site home page Giter Site logo

acebot-discord's Introduction

No longer actively developed

Acebot Build Status

Bot for Discord Server

Setup

Prerequistes

  • Docker
  • Node.js

Clone repo:

git clone https://github.com/derek-palmer/acebot-discord.git

Your App/Bot, client ID and token can be created here:

https://discordapp.com/developers/applications/me/

Add your bot to your discord server:

https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID_HERE&scope=bot&permissions=0

Add your token to your .env file

Build and run docker container:

docker-compose build
docker-compose up

Commands (work in progress):

  • !pong - Sends "ping" back to user
  • !btc - Responds with current USD market price of bitcoin
  • !ltc - Responds with current USD market price of litecoin
  • !eth - Responds with current USD market price of ethereum
  • !goat - Responds with random goat gif
  • !kitten - Responds with random kitten gif
  • !helpme - Bot help
  • !add - Adds numbers
  • !foo - Responds with "bar!" if you're an Admin.
  • !triggered - Responds with favorite triggered gif.
  • !brule - Responds with randome Steve Brule gif.
  • !bringo - Responds with favorite Steve Brule bringo gif.
  • !bow - Responds with favorite James Franco bow gif.
  • !hue - Responds with random HueHueHue gif.
  • !imback - Responds with dog jumping over fence gif.
  • !zoop - Responds with ๐Ÿ‘‰ ๐Ÿ˜Ž ๐Ÿ‘‰

acebot-discord's People

Contributors

dependabot[bot] avatar derek-palmer avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mkredmond

acebot-discord's Issues

Pinned time is off

AcebotBOT - Today at 3:22 PM
The pins for general have been updated on 6/21/17 at 10:03 AM

DeprecationWarning

#33[36macebot_1 | #33[0m0|Acebot | (node:30) DeprecationWarning: TextChannel#sendMessage: use TextChannel#send instead

Update travis.yml to tag and push docker image to AWS

sudo: required

language: ruby

services:
  - docker

env:
  DOCKER_COMPOSE_VERSION: 1.11.0

before_install:
  - sudo apt-get update
  - docker-compose --version
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin
  - docker-compose --version
  - pip install --user awscli
  - export PATH=$PATH:$HOME/.local/bin
before_script:
  - bundle install
script:
  - eval $(aws ecr get-login --region us-east-1)
  - docker build -t minecraft-server .
  - docker tag minecraft-server:latest 253112403313.dkr.ecr.us-east-1.amazonaws.com/minecraft-server:latest
  - ./run_rspec_tests.sh
after_script:
  - docker push 253112403313.dkr.ecr.us-east-1.amazonaws.com/minecraft-server:latest

Update TextChannel#SendMessage to TextChannel#send

Here are the 2 recent events matching your Deprecation search.

Jun 20 11:01:17 Acebot-EC2 rc.local: #033[36macebot_1 | #033[0m0|Acebot | (node:30) DeprecationWarning: TextChannel#sendMessage: use TextChannel#send instead
Jun 20 11:01:17 Acebot-EC2 rc.local: #033[36macebot_1 | #033[0m0|Acebot | (node:30) DeprecationWarning: TextChannel#sendMessage: use TextChannel#send instead

Karma command(s)

  • Will definitely need a backend DB. Need to figure out how to do that before adding in the karma commands.

After updating to the latest keymetrics docker image, starting the app occasionally fails

PS D:\Shares\FOXBAT_Storage\projects\acebot-discord> docker-compose up
Starting acebotdiscord_acebot_1 ...
Starting acebotdiscord_acebot_1 ... done
Attaching to acebotdiscord_acebot_1
acebot_1 | Connecting...
acebot_1 | ...0 application online, exiting
acebot_1 | Exiting PM2
acebot_1 |
acebot_1 | [Monitoring Enabled] Dashboard access:
acebotdiscord_acebot_1 exited with code 0
PS D:\Shares\FOXBAT_Storage\projects\acebot-discord> docker-compose up
Starting acebotdiscord_acebot_1 ...
Starting acebotdiscord_acebot_1 ... done
Attaching to acebotdiscord_acebot_1
acebot_1 | Connecting...
acebot_1 | ...
acebot_1 | [Monitoring Enabled] Dashboard access:
acebot_1 | 0 application online, exiting
acebot_1 | Exiting PM2
acebot_1 | PM2 | Stopping app:Acebot id:0
acebot_1 | PM2 | App name:Acebot id:0 disconnected
acebot_1 | PM2 | App [Acebot] with id [0] and pid [30], exited with code [0] via signal [SIGINT]
acebot_1 | PM2 | [HandleExit] PM2 is being killed, stopping restart procedure...
acebot_1 | PM2 | pid=30 msg=process killed
acebot_1 | PM2 | ===============================================================================
acebot_1 | PM2 | --- Stopping PM2 --------------------------------------------------------------
acebot_1 | PM2 | Time : Mon Oct 30 2017 22:50:34 GMT-0400 (EDT)
acebot_1 | PM2 | ===============================================================================
acebot_1 | PM2 | RPC closed
acebotdiscord_acebot_1 exited with code 0
PS D:\Shares\FOXBAT_Storage\projects\acebot-discord> docker-compose up

!forecast

Use DarkSky's API to give the forecast + other info
(Use auth + code from weather-app)

Desired functionality / format:

!forecast {zip code}

  • Take contents of server.js and add to acebot
  • Create command that searches and finds zip, adds to query, then executes query
  • Grab desired info from JSON blob
  • display to user (we need to figure out what we want to display) - High / Low, 5 / 10 day forecast, etc.

!bow

  • Use James Franco bow gif. But due to gif being too large, it will need to be hosted in the app and served that way.
    bow

Refine !bitcoin command

Currently it pulls the entire array for the current prices in different currencies. Only pull USD instead of all in array.

Update Readme

  1. Remove Trello link
  2. Update Commands (if applicable)
  3. Add documentation for tests and running them locally

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.