Giter Site home page Giter Site logo

coco-bot's Introduction

Cocobot!

Espa帽ol

Introducci贸n

Cocobot es un bot para Discord dise帽ado para la diversi贸n e interacci贸n. Los usuarios pueden invocar dos comandos principales: /coco, que suelta un emoji de coco (馃ゥ) en el chat, y /cocotime, que inicia una cococadena (una serie de emojis de coco ininterrumpidos). Durante una cococadena, Cocobot cuenta los emojis hasta que alguien rompe la cadena enviando un mensaje diferente.

Requisitos

  • Node.js
  • Biblioteca Discord.js
  • Un Token de Bot de Discord

Configuraci贸n

  1. Clona el repositorio.
  2. Ejecuta npm install para instalar las dependencias.
  3. Crea un archivo .env con tu Token de Bot de Discord como DISCORD_BOT_TOKEN=tu_token_aqu铆 y tu Discord APP ID como DISCORD_APPLICATION_ID=your_id_here.
  4. Inicia el bot con npm run start.
  5. Conecta el bot a tu server utilizando una URL OAuth2 con scope bot.

Uso

  • /coco: Env铆a un emoji de coco al chat actual.
  • /cocotime: Inicia un evento de cococadena donde Cocobot cuenta los emojis de coco hasta que la cadena se rompe.

Informaci贸n Adicional

  • Cocobot anunciar谩 cuando termine una cococadena y si se establece un nuevo r茅cord.
  • El r茅cord se persiste en record.txt para compararlo en futuras cadenas.

English

Introduction

Cocobot is a Discord bot designed for fun and engagement. Users can invoke two primary commands: /coco which drops a coconut emoji (馃ゥ) in the chat, and /cocotime which starts a coconut chain (a series of uninterrupted coconut emojis). During a cocochain, Cocobot counts the emojis until someone breaks the chain by sending a different message.

Requirements

  • Node.js
  • Discord.js library
  • A Discord Bot Token

Setup

  1. Clone the repository.
  2. Run npm install to install dependencies.
  3. Create a .env file with your Discord Bot Token as DISCORD_BOT_TOKEN=your_token_here and your Discord APP ID as DISCORD_APPLICATION_ID=your_id_here.
  4. Start the bot with npm run start.

Usage

  • /coco: Sends a coconut emoji to the current chat.
  • /cocotime: Initiates a cocochain event where Cocobot counts coconut emojis until the chain is broken.

Additional Information

  • Cocobot will announce when a cocochain ends and if a new record is set.
  • The record is persisted on record.txt to be compared against in future chains.

Permissions

Authorization screen

Project Structure

Usage

Permissions

coco-bot's People

Contributors

speedbuild98 avatar

Stargazers

 avatar

Watchers

 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.