GithubHelp home page GithubHelp logo

00mjk / eddiebot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eddiehubcommunity/eddiebot

0.0 0.0 0.0 972 KB

Discord bot for Eddie Jaoude's Discord server

Home Page: https://discord.gg/jZQs6Wu

License: MIT License

TypeScript 98.02% Shell 1.03% Dockerfile 0.95%

eddiebot's Introduction

EddieBot

Develop workflow

Discord bot for Eddie Jaoude's Discord server

Contributing

Feel free to create an issue or make a Pull Request ๐Ÿ˜ƒ. Please see our Contributing file first, before making new commits or opening a PR. We appreciate it โค๏ธ!


โ†’ Features of EddieBot

  • Set/Get user bio with description and social links

  • Timezone, listens for messages that contain 1:30pm UTC and replies with common timezones translation

  • Code of Conduct

  • Daily standup message consistently formatted

  • Help showing a list of available commands

  • Members role rewards

  • Gets tips of resources on a given subject

  • Server status, to display some statistics of the server (e.g total number of users and messages)

  • Firebase (Firestore) integration, allowing people to easily add commands and persist data

  • GitHub Actions deploys mainline branch to Azure

โ†’ Requirements

  • [optional] Docker and Docker-Compose
  • discord token. To get one follow these instructions
  • general channel ID of your discord server, read the instructions on one of these links to get yours:
  • ID of your discord server, to get your server ID follow these steps:
    • First make sure you have Developer Mode enabled on your Discord by visiting your Discord settings and going to Appearance
    • Right click on the server icon on the left hand sidebar then click on "Copy ID"
  • firebase key for the project, check these docs to get your key
  • [optional] Github token that you can get from here
  • [optional] GCP account to deploy to (using GitHub Actions)
  • Configured words show with alternative suggestions after the user sends a message using the Alex project

โ†’ How to run EddieBot locally:

1. Set Environment Variables

  1. Copy .env.example to .env.
  2. Generate the "Service Account" from Firebase Settings > Cloud Messaging.
    1. Download Service Account JSON file from this same screen.
  3. Open .env and fill empty strings with matching credentials from the JSON file.

2. To start the application

  • [optional] To run with Docker ensure you have the latest version and Docker Compose installed and run

    • docker-compose up
  • To run locally

    1. To setup: npm run setup
    2. To start: npm run start:local

โ†’ Useful Commands

  • View Logs

    docker-compose logs --tail=all -f eddiebot-nodejs

  • Use NodeJS instance CLI

    docker-compose exec eddiebot-nodejs /bin/bash

Standardized Code Formating

  • Before Commit
    1. lint for errors: npm run lint
    2. fix any errors: npm run lint:fix

Using Commitizen for commits

  1. git add <your files>
  2. npm run commit

โ†’ Logging

Logging will happen to the console as well as to the Discord bot channel.

  1. Include the logger object...
import { log } from './logger';
  1. Usage
log.info('Message', 'Details');

or

log.warn('Message', 'Details');

or

log.error('Message', 'Details');

or

log.fatal('Message', 'Details');

Documentation

Resources


Socials

Join our discord community here

eddiebot's People

Contributors

eddiejaoude avatar bolt04 avatar allanregush avatar allcontributors[bot] avatar raisinten avatar vyvy-vi avatar naomi-lgbt avatar stemount avatar mikeysan avatar eync avatar dependabot[bot] avatar chinmaymhatre avatar mstanciu552 avatar prajwal0024 avatar garretcharp avatar utkarsh299-tech avatar ruth-ikegah avatar luckspt avatar goluffyxd avatar starlightknown avatar akshu-on-github avatar adityaraute avatar schmelto avatar ritvij14 avatar morrme avatar virenkhandal avatar sashreek1 avatar remcohalman avatar skullxl avatar muthuannamalai12 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.