Coder Social home page Coder Social logo

horsengel-roulette's Introduction

Summary

Welcome here! I am Helmasaur and I live in Paris, France.

For now, you can mostly find projects related to discord.js, but some other things might slowly appear. I might be talking about a CMS and a video gameΒ πŸ‘€.

Stay tuned!

How to reach me

🐦 Twitter: @helmasaur
πŸ“· Instagram: @helmasaur
🐽 Discord: Helmasaur#1138

Statistics

NOTE: Top Languages does not indicate my skill level or anything like that. It's a GitHub metric of which languages have the most code on GitHub. It's a new feature of github-readme-stats.

Helmasaur's GitHub stats Top languages

horsengel-roulette's People

Contributors

helmasaur avatar lioness100 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

horsengel-roulette's Issues

Check bot permissions

For a working Horsengel roulette, the bot requires those permissions:

  • SEND_MESSAGES
  • KICK_MEMBERS
  • CREATE_INSTANT_INVITE

Example for Commando.js Framework [discord.js]

I would be helpful if you tell me more about how to make it work in commando framework. I got the !hr play , I will just check if the user accepts or not in the play command file, but what is !pan ?

Missing await

When lost the game rich embed can be displayed after the kick message.

await

Fix importation in the example

Instead of const HorsengelRoulette = require('..');, it should be const HorsengelRoulette = require('horsengel-roulette');.

Update README

Update README so it's accurate with the modification done on the code.

Do not forget:

  • discord.js version;
  • check about Commando;
  • modify the example;
  • link to the people listed in the thanks.

Sort methods

Sort methods in a better way. At the moment, it's too chaotic!

horsengel-roulette/locales/en/common.json: Unexpected end of JSON input

3|m | SyntaxError: /root/mustafa/node_modules/horsengel-roulette/locales/en/common.json: Unexpected end of JSON input
3|m |     at parse (<anonymous>)
3|m |     at Object.Module._extensions..json (internal/modules/cjs/loader.js:1041:22)
3|m |     at Module.load (internal/modules/cjs/loader.js:863:32)
3|m |     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
3|m |     at Module.require (internal/modules/cjs/loader.js:887:19)
3|m |     at Module.Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:80:39)
3|m |     at require (internal/modules/cjs/helpers.js:74:18)
3|m |     at new HorsengelRoulette (/root/mustafa/node_modules/horsengel-roulette/index.js:24:19)
3|m |     at BankCommand.run (/root/mustafa/commands/minigames/roulette.js:32:16)
3|m |     at Message.run (/root/mustafa/node_modules/discord.js-commando/src/extensions/message.js:222:34)
3|m |     at processTicksAndRejections (internal/process/task_queues.js:97:5)
3|m |     at async CommandDispatcher.handleMessage (/root/mustafa/node_modules/discord.js-commando/src/dispatcher.js:144:19)

This is the error i get while starting the game

my code:

 const prefix = msg.guild.commandPrefix

    const hr = new HorsengelRoulette(msg, msg.member, opponent, '!', 'en');
		hr.load(6, 1); // Chamber size and number of bullets
		hr.start();

Horsengel roulette is broken

This happens because the module will waits for the answer of the provoked person. The code doesn't include a part for the bot as the opponent.

Thanks to orange88 for finding this bug out.
bot_hr_bug

Use emojis to accept or reject a duel

For example, the emojis βœ… and ❌ could be used.

The message created by the bot after the command !hr used, both emojis should be added. The first one which is clicked by the provoked member should trigger the game or cancel it.

Should this change be made?

Doesn't work if the bot's main code is on discord.js v13

I've tried to use this package for a command for my discord.js v13 discord bot, but it doesn't seem to work at all.
The only thing it does is prompt the user to use "!yes" to start and it stops there, doesn't matter if the other user says "!yes" or not.

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.