Code Monkey home page Code Monkey logo

ania-bot's Introduction



A-Nia

Private Bot | Large archive | Help for students

Made with NodeJS 18.X Version 1.0.1 Discord.js v14.X Team Phearion

Overview:

A-Nia (stand for: A=Awesome and Nia (from Swahili language)=Brillant)

  • A-Nia cannot be invited to your server (as for now).
  • A-Nia before 2024, this bot will not be deleted, given or abandoned.
  • A-Nia is fully a property of Phearion Network by Phearion

Options

Archive

Can be executed through /archive

  • Schools:

    1. IPSA: contains all the MP, TP and a few exam sheets to help you.
    2. Comming soon...
  • Global:

    1. Comming soon...
  • Languages:

  1. Comming soon...

ania-bot's People

Contributors

phanthive avatar

Stargazers

 avatar

Watchers

 avatar

ania-bot's Issues

Archive: Unknown interaction when using the archive

Describe the bug
When interacting with the archive a log happens "unknown interaction".
The error doesn't impact the use of the archive but does make the bot restart.
It seems that any button triggered can make this error.
It seems even just calling the archive create this error.

The error is always happening with a mongodb error (see context)

To Reproduce
Steps to reproduce the behavior:

  1. Use /archive
  2. Interact as you want

Expected behavior
No unknown interaction error in the logs.

Additional context
/ania-bot/ania-bot/dist/events/guild/interactionCreate.js:279:5)","message":"Unknown interaction"}
/ania-bot/ania-bot/dist/events/guild/interactionCreate.js:161:13)

(Use node --trace-warnings ... to show where the warning was created)

(node:44182) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version```

Archive system failing randomly on button interaction.

Describe the bug
When calling the archive, it would happen that soemtimes, clicking on button 2: for TP willl result in a minor error.

To Reproduce

  1. Go to private message of the bot
  2. /archive
  3. click on any button

Expected behavior
Either there are TP available or not, there shoud be no errors.

Logs

TypeError: Cannot read properties of null (reading 'id')
    at /home/actions-runner/_work/ania-bot/ania-bot/dist/SlashCommands/students/src/archive/archiveTp.js:65:47
    at Array.forEach (<anonymous>)
    at showTps (/home/actions-runner/_work/ania-bot/ania-bot/dist/SlashCommands/students/src/archive/archiveTp.js:64:27)
    at ExtendedClient.<anonymous> (/home/actions-runner/_work/ania-bot/ania-bot/dist/events/guild/interactionCreate.js:140:43)
    at ExtendedClient.emit (node:events:515:28)
    at InteractionCreateAction.handle (/home/actions-runner/_work/ania-bot/ania-bot/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
    at module.exports [as INTERACTION_CREATE] (/home/actions-runner/_work/ania-bot/ania-bot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/actions-runner/_work/ania-bot/ania-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
    at WebSocketManager.<anonymous> (/home/actions-runner/_work/ania-bot/ania-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
    at WebSocketManager.emit (/home/actions-runner/_work/ania-bot/ania-bot/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)

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.