Russian multipurpose Discord Bot
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 inenvironment.d.ts
- Required variables:
- botToken — Bot token from Discord Developer Portal
- 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 totesting
, 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.
- Linux instruction
- Windows instruction
- For Heroku i use Heroku Buildpack FFmpeg Lasted
- Run
pnpm dev
for development orpnpm build
andpnpm start
for production
Image Search
— Search anime, manga and other by imagesModeration
— Logging of all actions, the impact of the number of warnings / bans on the duration of the mute and moreMusic
— Play music in a voice channel. Support YouTube, Spotify and SoundCloudUtils
— Various commands, like as search for random anime or hentai, anime information and moreVoice
— Custom user voices module
- Works, but no commands added right now
Moderation
— Mute command, in future — other moderation commands from Common commands
AntiPing
— prevents mass mentions of peopleAntiScam
— Deleting all messages containing nitro scam linksAniDBLink
,AnilistLink
,NHentaiLink
— Display information about anime or hentai when publishing a link to itMediaChannel
— Create a channel for media (any posts that do not contain links or attachments will be deleted)