Skip to content

Commit

Permalink
docs: Updated Self-host cmds, Added Genius API Token Guide (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxGuy312 authored Oct 4, 2023
1 parent 1975ddd commit eaf7066
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* [📕 IBM](tutorials/ibm.md)
* [📕 LastFM](tutorials/lastfm.md)
* [📕 Spotify](tutorials/spotify.md)
* [📕 Genius API Token](tutorials/genius.md)

## About Us

Expand Down
8 changes: 5 additions & 3 deletions docs/installation/hosting/self-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Hosting bot manually can be a bit of pain, that why we prefer [<mark style="colo
{% code title="Update and install apt packages & node.v18" overflow="wrap" %}
```batch
sudo apt update && sudo apt upgrade -y \
&& sudo apt install --no-install-recommends -y curl ffmpeg fonts-noto-color-emoji gcc git libmagickwand-dev libpq-dev mediainfo nano neofetch pv python3 python3-dev python3-lxml python3-pip python3-psycopg2 screen tree unzip wget zlib1g libyaml-dev \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
&& sudo apt install --no-install-recommends -y ca-certificates curl ffmpeg fonts-noto-color-emoji gcc git gnupg libmagickwand-dev libpq-dev mediainfo nano neofetch pv python3 python3-dev python3-lxml python3-pip python3-psycopg2 screen tree unzip virtualenv wget zlib1g libyaml-dev \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && NODE_MAJOR=18 && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \
sudo apt-get update && sudo apt-get install nodejs -y
```
{% endcode %}

Expand Down Expand Up @@ -43,7 +45,7 @@ screen -S catuserbot

{% code title="Install venv & requirements" overflow="wrap" %}
```batch
pip install virtualenv && virtualenv venv && source venv/bin/activate && pip3 install -r requirements.txt
virtualenv venv && source venv/bin/activate && pip3 install -r requirements.txt
```
{% endcode %}

Expand Down
16 changes: 16 additions & 0 deletions docs/tutorials/genius.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 📕 Genius API Token

## 〣 Creating an API Client to get Access Token

* Go to [genius.com/api-clients/new](https://genius.com/api-clients/new)
* Click on the "Sign Up" button and Create an Account.
* Enter a name for your App and put `https://example.com` in <mark style="color:green;">APP WEBSITE URL</mark>. You can Leave other two fields empty.

<figure><img src="https://graph.org/file/d29c51db868599ab7a20f.jpg" alt="Page after clicking 'Create Account' and filling values"><figcaption><p>Page after clicking 'Create Account' and filling values</p></figcaption></figure>

* Click on Save button.

<figure><img src="https://graph.org/file/051dc8c0530872e0b783d.jpg" alt="Page after clicking 'Save' button"><figcaption><p>Page after clicking 'Save' button</p></figcaption></figure>

* On This page, click on <mark style="color:blue;">Generate Access Token</mark> and Copy the token. Save the copied token in your bot's configuration file as environment variable with the following name:
* `GENIUS_API_TOKEN`

0 comments on commit eaf7066

Please sign in to comment.