Giter Site home page Giter Site logo

sizzlorox / idle-rpg-bot Goto Github PK

View Code? Open in Web Editor NEW
54.0 6.0 37.0 1.53 MB

An Idle-RPG bot for Discord

License: MIT License

JavaScript 98.16% Dockerfile 0.03% Procfile 0.01% HTML 0.35% CSS 0.21% TypeScript 1.25%
discord bots idle-game idlerpg rpg nodejs discordjs

idle-rpg-bot's Introduction


MIT Liscense Patreon

Idle-RPG-Bot

An Idle-RPG bot for Discord created using node.js with the discord.js framework. This is an open-source project and is currently still in development. A lot is still to be done.

This is a project to practice and learn more on how to create a bot for Discord and to practice javascript. Anybody who is willing to join in on this project is welcome to do so!

To see this bot in action it is currently running at the Idle-RPG Discord Server

There is also a Idle-RPG Trello Board

Deploy Idle-RPG-Bot on Heroku

You can deploy in a simple way to Heroku using the button below.

Deploy to Heroku

Setup

Create a .env file in the project root directory with these env variables: (Without < >)

DISCORD_BOT_LOGIN_TOKEN=<Bot login token>
DISCORD_BOT_OPERATORS_ID=<Comma seperated list of Bot Operator ID's>
Example:
DISCORD_BOT_OPERATORS_ID=123456789
DISCORD_BOT_OPERATORS_ID=123456789, 987654321

MIN_TIMER=<Minimal Timer in minutes>
MAX_TIMER=<Maximum Timer in minutes>

MONGODB_URI=<MongoDB Connection URI>

Requirements

nodejs
mongodb

Installation

npm install
npm run start
(if on windows)
npm run start:windows

idle-rpg-bot's People

Contributors

abutbul avatar arkenfleur avatar dependabot[bot] avatar fritogotlayed avatar laikafusion avatar macleykun avatar munsta0 avatar sizzlorox avatar timon23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

idle-rpg-bot's Issues

Modularize RPG and Bot

I'd love to collaborate on the RPG components of this project, but I'm much less interested in the Bot than I am the engine you've built. Perhaps you would consider breaking the RPG elements out into a standalone package, and using this repository to import it as a bot?

need more information

Hey, I'd like to talk to you about this, i don't know if github has a messaging system but if it does please send me an initial message.

node version dockerfile mismatch

flatMap was added in node11, current Dockerfile using node 10

example issues:

 TypeError: Object.entries(...).filter(...).flatMap is not a function
bot_1    |     at new APIRequest (/usr/src/app/node_modules/discord.js/src/rest/APIRequest.js:24:10)
bot_1    |     at RESTManager.request (/usr/src/app/node_modules/discord.js/src/rest/RESTManager.js:39:24)
bot_1    |     at Proxy.options (/usr/src/app/node_modules/discord.js/src/rest/APIRouter.js:30:19)
bot_1    |     at MessageManager._fetchMany (/usr/src/app/node_modules/discord.js/src/managers/MessageManager.js:140:75)
bot_1    |     at MessageManager.fetch (/usr/src/app/node_modules/discord.js/src/managers/MessageManager.js:68:86)
bot_1    |     at bot.guilds.cache.each (/usr/src/app/idle-rpg/v2/DiscordBot.js:394:60)
bot_1    |     at process._tickCallback (internal/process/next_tick.js:68:7)
bot_1    | {"name":"error","hostname":"56fc12f9c0d6","pid":1,"level":50,"err":{},"msg":"Object.entries(...).filter(...).flatMap is not a function","time":"2022-01-31T16:
00:00.021Z","v":0}

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.