Coder Social home page Coder Social logo

lazaroblanc / discord-bot Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 83 KB

πŸ€– Discord bot made with discord.js

Home Page: https://github.com/lazaroblanc/discord-bot

License: Other

JavaScript 100.00%
discord discord-bot discord-js discord-js-bot discord-js-v12 node nodejs node-js javascript js

discord-bot's Introduction

πŸ‘‹ Moin!

I'm LΓ‘zaro and I'm an IT nerd. I love working with IT infrastructure, automation and open-source software.

I'm an:

  • πŸ‘¨β€πŸŽ“ avid learner
  • ✈ aerospace enthusiast πŸš€
  • 🎧 music lover

Right now I'm working on automating my own home IT infrastructure with Ansible and tinkering with my homelab to find a setup that fits me.

Contact

You can get in touch with me via LinkedIn

Donations

You can choose to donate via GitHub Sponsors or Ko-fi.

Stats

discord-bot's People

Contributors

lazaroblanc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

discord-bot's Issues

Add log message on startup

Log message should look sth. like this:

Bot is ready as ${username}#${tag}
Running on guilds:
- ${guildname} (${guildid}) as ${nickname}
- ${guildname} (${guildid}) as ${nickname}

Talk start time is wrong

Currently the talk start time is set when the talk is written to the talks map. This happens as soon as the first user joins a channel though the start time of a talk should be when the second user joins the channel.

Talk gets deleted before talk ended embed is posted

When talk ends and both the participants leave the voicechat before the talk ended embed get's posted, the talk gets deleted before all avatars can be downloaded and drawn

"talkDeleted" event function runs before "talkEnded" event function finishes

Avatar conversion from webp to png failed

Log:

Talk in channel Lounge (734383009683341383) ended with 2 participants
"e5c17884c8fd7cd9492551b248a82305.webp" -o "e5c17884c8fd7cd9492551b248a82305.png"
"522c9c41c4c841fcc4d0c30dc456b219.webp" -o "522c9c41c4c841fcc4d0c30dc456b219.png"
Error: Command failed: "/home/lazaro/kim/node_modules/webp-converter/bin/libwebp_linux/bin/dwebp" "e5c17884c8fd7cd9492551b248a82305.webp" -o "e5c17884c8fd7cd9492551b248a82305.png"
Could not read 0 bytes of data from file e5c17884c8fd7cd9492551b248a82305.webp

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12) {
  killed: false,
  code: 255,
  signal: null,
  cmd: '"/home/lazaro/kim/node_modules/webp-converter/bin/libwebp_linux/bin/dwebp" "e5c17884c8fd7cd9492551b248a82305.webp" -o "e5c17884c8fd7cd9492551b248a82305.png"'
}
Drawing avatar for Sellmann to carousell image
Writing carousell image to disk
Creating talk ended embed
Posting talk ended embed

Talk doesn't get removed in all cases

Talk doesn't get removed if a member joins and leaves a channel without someone else joining in. The talk remains and they stay entered as a participant even if a talk started later without them.

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.