Skip to content

shinomiya-corp/chika

Repository files navigation

ci Website GitHub Invite

discord.js bot for Chika

Hayasaka is best girl, so it puzzles myself why I chose Chika as a template for the bot. But we've gone too far to turn back now. If I started this project from scratch today, I'd use a tool like Nx and put everything in a mono-repo. But I was dumb and divided this project into: the bot itself (this page), server, landing page, dashboard, and even a repo just for a freakin prisma schema file and migrations.

Features

  • 🎮 Games from the manga (Shiritori and Balloon(?))
    • More are coming soonTM
  • 🎧 Simple music streaming
  • 🦜 An unintelligent AI chatbot for Kaguya and Chika
    • I don't know anything about ML but hey it kinda works
  • 💰 Global currency system
  • ...and some others probably, see the full list here

Run Locally

Clone the project

  git clone https://github.com/shinomiya-corp/chika.git

Install dependencies

  cd chika && yarn

Build and run (requires node v14.16.1 for music to work, idk why lol)

  yarn tsc && node dist/index.js

Environment Variables

To run this project, you'll need to add the following environment variables to your .env file

APP_TOKEN, BOT_USER_ID (from Discord's developer portal)

DATABASE_URL, REDISCLOUD_URL (pointing to a postgres and redis instance)

HUGGING_FACE_CHIKA, HUGGING_FACE_CHIKA_KEY, HUGGING_FACE_KAGUYA, HUGGING_FACE_KAGUYA_KEY (from hosting the ML stuff on huggingface.co)

ANILIST_SCHEMA (it's just https://graphql.anilist.co)

Roadmap

  • Web dashboard in NextJS 🥢
  • Integrate uwu into a command
  • 30% test cov pls

Screenshots

Here are some bruh moments

Feedback

If you have any feedback or spot bugs, please raise an issue on GitHub.