Skip to main content

Setup instructions

So, Karen Bot is quite tightly integrated with my private API, which is good & bad news. The good news is that a lot of strain is taken off of Karen and put on my API, while the bad news is that someone without API access can't really run Karen that well. Fortunately, I have designed a lot of the API to have as little server-side processing as possible, ensuring a tedious simple transition to your own API or just saving files on your computer! So this section will walk you through the necessary things to get Karen Bot at least slightly functional :)

API shenanigans

As of 2021-12-19 the API has started doing a bunch of server-side processing. I will be opening up the API's code soon so people can spin up their own.

2022-04-23 update: yeah nah I can't be bothered

Discord token

This is going to be super simple First, go to discord.com/developers/applications and click on the button "New application" How to create new application

Then, name your application How to name application

Great! Now you have an application, but not a bot! To get a bot, create on the "Bot" tab on the sidebar, then when it asks you if you really want to create a bot, just say yes! How to create bot

Wow, you can follow simple instructions, great! To get the token, click on "Copy" under the token while on the Bot tab. Now, be careful where you put it since tokens are basically like usernames and passwords for bots. How to copy token

Aaand you're done with the token part, congratz! 🎉

Spotify OAuth token

First, go to developer.spotify.com/dashboard/applications and log in/sign up (if you don't have a spotify account for some god awful reason)

Then, click on the big green "Create application" button and give it a name & description How to create app

Now you have a shiny Spotify application, great! So next, click on "Show client secret". Make sure not to leak the secret since it is, well, a secret! How to get OAuth token

Oh hey, already at the end of this section! Good job, go pat yourself on the back 🥳

Genius OAuth token

!> Genius API is not yet used in Karen Bot and thus doesn't yet need OAuth tokens

First, go to genius.com/developers/. Then create on the biggest button you can find, aka "Create an API client" How to navigate the startpage

Then log in/sign up and you will be presented the API client creation screen. Fill in the name and if you want, the rest of the fields, then click "Save" How to create an API client

Now you will get to the "All API Clients" screen, great! Click "Generate Access Token" and save it! (Again, keep it super super private) How to copy OAuth token

HOORAY! YOU HAVE DEMONSTRATED AN EXCEPTIONAL ABILITY TO FOLLOW SIMPLE INSTRUCTIONS, WAY TO GO! ONLY A FEW LEFT 🥳🎉

Clarifai AI Key

Now now now, this is the last one (for now)! Pat yourself on the back before proceeding.

You done? Good. First, go to clarifai.com and sign up How to sign up

When you have signed up, click on "Create application" and set up the fields. BUT BEFORE YOU CONTINUE, YOU WILL NEED TO SET THE WORKFLOW TYPE TO MODERATION! IT IS VERY VERY IMPORTANT How to create application SET WORKFLOW TYPE

Now, just copy the key and you're done! How to copy key

Putting that all in .env

So, clone/fork the repo and create an .env file.

For each field, add the content to it in the .env file after the = (Remember, no spaces)

FieldContent
DISCORD_TOKENDiscord token
SPOTIFY_IDSpotify ID
SPOTIFY_SECRETSpotify secret
GENIUS_ACCESSTOKENGenius access token
NSFAI_KEYClarifai key