/WhiteAlice

Discord multi-proposal TypeScript bot

Primary LanguageTypeScript

White Alice

Russian multipurpose Discord Bot

How to run

I am using pnpm in a project but you can use any other package manager

  • git clone https://github.com/AgentRBY/White_Alice
  • cd White_Alice
  • pnpm install
  • Create an .env file and fill it according to the pattern in environment.d.ts
  • Required variables:
  • Optional variables:
    • mongoURI — MongoDB URI, more info here
    • environment — development or production. If development, application commands set to dev guild (see next)
    • devGuildID — Development Guild ID, used to add application commands if environment set to development
    • prefix — Default bot prefix. If not specified will be used >
    • ownersID — User ID of the creators, separated by commas without a space (example: 123,435)
    • mode — If set to development, then only the creators specified in the ownerID can use the bot. If set to testing, then only the testers can use the bot. Other values (including production) do nothing
    • sauceNAOToken — SauceNAO token from SauceNAO API. If not specified, the findImage command will not work.
    • yandexYU — Unique user ID in Yandex. I don’t know why it is needed, Yandex search command works without it
    • distubeCookie — Cookie from YouTube. Necessary for the stable operation of the music module. How to get
  • For the music module to work, you also need to install FFmpeg.
  • Run pnpm dev for development or pnpm build and pnpm start for production

Commands and modules

Common commands:

  • Image Search — Search anime, manga and other by images
  • Moderation — Logging of all actions, the impact of the number of warnings / bans on the duration of the mute and more
  • Music — Play music in a voice channel. Support YouTube, Spotify and SoundCloud
  • Utils — Various commands, like as search for random anime or hentai, anime information and more
  • Voice — Custom user voices module

Context commands:

  • Works, but no commands added right now

Slash commands:

  • Moderation — Mute command, in future — other moderation commands from Common commands

Modules:

  • AntiPing — prevents mass mentions of people
  • AntiScam — Deleting all messages containing nitro scam links
  • AniDBLink, AnilistLink, NHentaiLink — Display information about anime or hentai when publishing a link to it
  • MediaChannel — Create a channel for media (any posts that do not contain links or attachments will be deleted)

All commands as of 06/11/2022:

Commands