Inspiration

  • My friends and I sit in discords for a while and our posture can be "caught slouching". So I made this basic bot to try and automatically ask us to check our postures.

What it does

  • It choses a time between m and n seconds and pings everyone in the server to check their posture.

How I built it

  • Using python, discord api, and async

Challenges I ran into

  • Learning discord api
  • async has quite a few quirks that I ran into; things like only reading local variables unless specified otherwise
  • task.loop not updating once started even if the variable it uses changes value
  • How to read a .env file for a discord token
  • I also was kind of starved on time due to some unlucky circumstances :/

Accomplishments that we're proud of

  • Actually creating a discord bot, and one that me and my friends will use after some tweaking
  • Learning how discord's api calls work

What we learned

  • I learned a ton from the talks; I went to most of them. I really liked the wellness talks and hope that in the future; there may be one at an event even if they aren't wellness focused.
  • I learned that hackathons are actually pretty dope; a great place to talk and meet with a ton of people
  • I learned that async is complicated and that I still need to learn more about it
  • I also learned that discord bots are surprisingly easy to create and work on

What's next for PostureCheckerBot

  • Modular times to call for posture check
  • Command to select channel without access to code
  • Custom command to set time
  • Maybe other wellness things? Like telling you to hydrate, telling you to stand up and walk around, etc.
  • Reading who is in a channel (talking) and only @'ing them
  • A non-discord version that messages you randomly using twilio with a schedule that you can set (The idea being if you are at work; you probably do not want to be on discord, but you may still like the idea of the posture checker bot)

Built With

Share this project:

Updates