Giter Club home page Giter Club logo

jean_racine_bot's Introduction

Hi there, I'm @kernoeb 👋

Noéwen

I hold a degree in Computer Science (Licence Pro DLIS, Bac+3) in France 🇫🇷.

I mostly use languages or frameworks such as Node.js, Python3, Rust, GoLang, Vue.js, Nuxt.js, React.js or React Native.

🔭 Projects

  • PlanningSup — University planning built in Nuxt.js (+ PWA)
  • Géobtenu — Geography resource for GeoGuessr
  • BecauseOfProgVue.js (Website), React Native (Android)
  • Drapeau du Jour — One day, one flag (flag of the day)
  • I'm an active user of Telegram (@kernoeb), so I occasionally build bots to automate some stuff... ⭐
  • I work as an apprentice in a Breton start-up company, where I use Node.js, Vue.js, Nuxt.js, Rust and MongoDB.

📫 Contact me

Twitter Follow Support me on Buy Me a Coffee PayPal

jean_racine_bot's People

Contributors

antabuse-does-something avatar kernoeb avatar shockedplot7560 avatar

Stargazers

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

Watchers

 avatar  avatar

jean_racine_bot's Issues

Unable to add user

Hi!
I recently set up the jean_racine bot in a discord server, but I can't add any user.
The bot keeps telling me the user doesn't exist.
I double checked I'm using the root-me ID and not the pseudo.

Changing pages in role scoreboards transforms it to global scoreboard

Changing pages in a role scoreboard resets it and turns it a global one.

Environment

Kubernetes deployment.

  • Jean Racine image: ghcr.io/kernoeb/jean_racine_bot:main (22-10-16 build)
  • MongoDB image: docker.io/bitnami/mongodb:4.4

Steps to reproduce:

  1. Add Jean Racine to a server, initialize it in a channel.
  2. Add a few users with /adduser.
  3. Use /sync_user to synchronize Discord and RootMe accounts, with a specific Discord role.
  4. Use /scoreboard with one of the previously synchronized roles.
  5. Try to go to the second page of the scoerboard. It transforms into a global scoreboard.

Error: Couldn't resolve host name

Hello, I tried to run this project with the following docker-compose file :

click to see docker-compose.yml used
version: "3"

services:
  rootme_node:
    # You can use my own image, or build it from scratch
    image: ghcr.io/kernoeb/jean_racine_bot:main
    restart: always
    stdin_open: true
    tty: true
    env_file:
      - .env
    networks:
      - rootme
    volumes:
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"
    depends_on:
        - mongodb

  mongodb:
    image: docker.io/bitnami/mongodb:4.4
    restart: always
    networks:
      - rootme
    ports:
      - "27017"
    volumes:
      - '/opt/jeanracine:/data/db'

networks:
  rootme:
    driver: bridge

(by the way, I had another issue, latest mongo image uses /data/db as storage persistance; not /bitnami/mongodb)

The bot starts, and seems to not be able to resolve discord's hostname. Here is the log :

[19:26:39 pm] [curl.js:3] › cURL instantiated
[19:26:39 pm] [curl.js:15] › PROXIES :  null
[19:26:40 pm] [index.js:30] › ✔  success   Mongo OK
[19:26:40 pm] [mongoose.js:10] › Mongoose connected
[19:26:40 pm] [index.js:32] › ℹ  info      Agenda deleted 2
[19:26:40 pm] [index.js:114] › ℹ  info      Loading challenges, please wait...
[19:26:40 pm] [updates.js:91] › ℹ  info      Fetch and update challenges
[19:26:50 pm] [index.js:119] › ✖  error     Error while loading challenges [Error: Couldn't resolve host name] { code: 6, isCurlError: true }
[19:26:53 pm] [index.js:174] › ✔  success   Agenda started successfully
[19:26:53 pm] [updates.js:109] › ℹ  info      Update users
[19:26:53 pm] [updates.js:91] › ℹ  info      Fetch and update challenges
[19:26:53 pm] [index.js:133] › ✔  success   UPDATE_USERS OK
[19:27:03 pm] [index.js:157] › ✖  error     UPDATE_CHALLENGES ERROR [Error: Couldn't resolve host name] { code: 6, isCurlError: true }
/app/.yarn/cache/discord.js-npm-13.8.1-f93190cd66-1311aa3be7.zip/node_modules/discord.js/src/rest/RequestHandler.js:201
        throw new HTTPError(error.message, error.constructor.name, error.status, request);
              ^

HTTPError [FetchError]: request to https://discord.com/api/v9/gateway/bot failed, reason: getaddrinfo EAI_AGAIN discord.com
    at RequestHandler.execute (/app/.yarn/cache/discord.js-npm-13.8.1-f93190cd66-1311aa3be7.zip/node_modules/discord.js/src/rest/RequestHandler.js:201:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/app/.yarn/cache/discord.js-npm-13.8.1-f93190cd66-1311aa3be7.zip/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
    at async WebSocketManager.connect (/app/.yarn/cache/discord.js-npm-13.8.1-f93190cd66-1311aa3be7.zip/node_modules/discord.js/src/client/websocket/WebSocketManager.js:134:9)
    at async Client.login (/app/.yarn/cache/discord.js-npm-13.8.1-f93190cd66-1311aa3be7.zip/node_modules/discord.js/src/client/Client.js:254:7) {
  code: 500,
  method: 'get',
  path: '/gateway/bot',
  requestData: { json: undefined, files: [] }
}```

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.