Coder Social home page Coder Social logo

skylerreimer / asbot2.0 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 14.85 MB

Discontinued Discord bot for Anime Style battling

License: GNU General Public License v3.0

JavaScript 91.73% Shell 2.50% Java 5.78%
discord-bot discord-js node-js java bash-script

asbot2.0's Introduction

ASBot2.0

Active development has discontinued. Feel free to contact me if you need help starting an instance of this bot on your own.

Features:

%asbility: returns information about a given ability

%asbitem: returns information about a given item

%asbmove: returns information about a given move

%asbnature: returns information about a given nature

%asbstats: returns stats of a given pokemon

%asbtype: returns information about a given type

%calc: evaluates an expression

%ping: responds pong, useful for checking if bot is alive

%pong: responds pong, useful for checking if bot is alive

%roll: gives a random number

%help: gives a list of commands

And much more! Try %help to get a full list of available commands

Installation:

This bot is written to run on top of node.js. Please see https://nodejs.org/en/download/

Once you have node installed running npm install from the bot directory should install all the needed packages. If an error happens something went wrong

Running:

Before you run the bot you will need to download the latest spreadsheet. You can manually download it here and then place it into the res folder as Data.xlsx.

OR

You can run the updater programs in the updater folder. downloadFile.js is a Node.js command line program that will use your google account to authorize the dowloading of the data. Then you can optionally run errorCheck.java to ensure the file you downloaded isn't corrupted.

Anyways, you need to get the data for the bot into the res folder somehow. I personally use a cron job to redownload the data file every few days so my instance of the bot is updated for my users

To start the bot just run node app.js. inside of src/bot. I personally use pm2 to manage my bots. I use the same cron job from earlier to restart the bot and update it using the scripts I gave you in the scripts folder.

Updates:

If you update the bot, please run npm update before starting it again. If you have issues with this, you can try deleting your node_modules folder and then running npm install again. Please see Installation.

Credits:

The boys and girls at CAP ASB who have been using the bot and finding all the bugs for me

My friend who initally asked if this project was possible @endless in the discord channel

asbot2.0's People

Contributors

skylerreimer 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.