Giter Site home page Giter Site logo

ajmakare / ezrhyme-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.41 MB

A fun, rhyming game bot! Work amongst your Discord friends to come up words that rhyme with a randomly generated word!

Home Page: https://github.com/Ajmakare/EzRhyme-Discord-Bot

JavaScript 100.00%
discord bot rhyming rhyme game fun collaborative project javascript

ezrhyme-discord-bot's Introduction

EzRhyme - Discord Rhyming Bot

"^rhyme" command will announce a random word that users should try to rhyme with. The bot will listen to all messages (from anyone, not just the person who ran the command) sent after the command and will announce if the word correctly rhymes with the randomly generated word and decrement counters accordingly (see images below for visual demonstration). It will continue to listen until 10 words have been rhymed with the random word.

Currently deployed on Vultr VPS, but coded for only 1 server. I am not planning on publicizing this project at least for the time being. This was mainly just a fun, learning Discord bot coding project.

unknown

How it works: "^rhyme" command will generate a random word using a random-words module and assign it to a variable. This variable will then be used to access a rhyming API, a database of words that rhyme with said word. With a random-words module and the rhyming API together, they can accomplish the task with lots of JSON reading, array filling & traversing in order to compare words listened to (see bot.js & functions.js (helpers) for code).

image

... keeps going until 10 are guessed and:

image

NOTE: The rhyming API is lenient... as in a lot of the words that "rhyme" with the randomly generate word are often not in the english dictionary and are some form of proper noun or otherwise. This is THEIR implementation of what rhymes, not mine!

ezrhyme-discord-bot's People

Contributors

ajmakare avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sbmantrix

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.