Giter Site home page Giter Site logo

birthbot's Introduction

๐Ÿ‘‹ Hi, I'm Indraneel

  • I'm a computer science student ๐Ÿ’ป
  • I'm interested in functional programming, type theory, and artificial intelligence ๐Ÿค–
  • I'm also a musician ๐ŸŽธ

birthbot's People

Contributors

carnagion avatar facel3ss1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

birthbot's Issues

Next function

hi could you add a function to get the next n birthdays.

syntax maybe: /birthday next

Birthdays not being announced

Birthdays are not being announced at all, even though the bot is not offline. The cause for this is currently unknown.

The last known announcement was on 3rd September 2023.

List function

Would be good to have a list function for the bot to check who has the next birthday

Off-by-one error when calculating age

The age calculation used when announcing a user's birthday appears to have an off-by-one error, leading the age to be displayed as one less than the actual age.

Incorrect output when using `birthday next`

The birthday next command produces incorrect output.

The cause is that when sorting birthdays, their original years are used, which leads to them being sorted according to years first, then months, then days.
The intended behaviour is for birthdays to be sorted according to months and days only.

A possible fix would be to map() the birthdays to dates with the current year and UTC timezone before sorting them, though this would result in the allocation of another Vec<DateTime<Utc>>.

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.