Skip to content

Wabtey/uwu-meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UWU counter

Features

  • Count the number of uwu sent after deployment
  • The leaderboard and total is persistent across bot restart
  • /uwumeeter gives the number of uwu sent.
  • /uwulead gives the top 5 uwuer
  • /uwume gives your personal uwu count
  • /uwureset {1} needs a string argument (the new leaderboard on deserialized json) and will reset both the total of uwu and the leaderboard with the given leaderboard. Example: /uwureset {"1234":4, "5678":2}
  • /uwuexport exports the leaderboard to the chat (hashMap being serialized to json to string)

Permissions - 563224831331328

  • Read Messages/View Channels
  • Send Messages
  • Send Messages in Threads
  • Create Polls (for future uwu/uwu polls)

Contribute

  • put the discord bot's token in Secrets.toml, as DISCORD_TOKEN
  • change in .env the DATABASE_URL
  • run
    • sudo pacman -S postgresql
    • sudo su - postgres
      • createuser --interactive (superuser, will be used as your DATABASE_URL)
      • exit
    • sudo systemctl start postgresql
    • sudo su - postgres
      • createdb uwu-meter
    • cargo install sqlx-cli --no-default-features --features native-tls,postgres
    • sqlx database create
    • sqlx migration run
    • cargo sqlx prepare

About

counts UwU send in your discord server

Topics

Resources

Stars

Watchers

Forks

Languages