From 85c98de1cc096dc1baa22d1443ae44fe6a69c717 Mon Sep 17 00:00:00 2001 From: LinuxGuy312 <101087324+LinuxGuy312@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:31:29 +0530 Subject: [PATCH 1/4] Update Node.js Installation method, pip error solved Externally managed environment error solved while runnning "pip install virtualenv && ..." --- docs/installation/hosting/self-host.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/installation/hosting/self-host.md b/docs/installation/hosting/self-host.md index f591e25fc3..0e0b807515 100644 --- a/docs/installation/hosting/self-host.md +++ b/docs/installation/hosting/self-host.md @@ -11,8 +11,10 @@ Hosting bot manually can be a bit of pain, that why we prefer [ -* _**Run:**_ `python3 -m userbot` +* _**Run:**_ `python3 -Bm userbot` * _**Close Screen:**_ Press CTRL+A and after that CTRL+D * _**Check:**_ `screen -ls` * _**Reattach Screen:**_ `screen -r .catuserbot` From d1fc939283ef29246991334d667dacaac4beeec8 Mon Sep 17 00:00:00 2001 From: LinuxGuy312 <101087324+LinuxGuy312@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:10:12 +0530 Subject: [PATCH 2/4] How to Get Genius API Token --- docs/tutorials/genius.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/tutorials/genius.md diff --git a/docs/tutorials/genius.md b/docs/tutorials/genius.md new file mode 100644 index 0000000000..31788ab428 --- /dev/null +++ b/docs/tutorials/genius.md @@ -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 APP WEBSITE URL. You can Leave other two fields empty. + +
Page after clicking 'Create Account' and filling values

Page after clicking 'Create Account' and filling values

+ +* Click on Save button. + +
Page after clicking 'Save' button

Page after clicking 'Save' button

+ +* On This page, click on Generate Access Token and Copy the token. Save the copied token in your bot's configuration file as environment variable with the following name: + * `GENIUS_API_TOKEN` From 964431af58a101dc750a3e085e37b311c9782501 Mon Sep 17 00:00:00 2001 From: LinuxGuy312 <101087324+LinuxGuy312@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:49:59 +0530 Subject: [PATCH 3/4] Added Genius --- docs/SUMMARY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 2679133a85..f03fcc03d6 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -23,6 +23,7 @@ * [📕 IBM](tutorials/ibm.md) * [📕 LastFM](tutorials/lastfm.md) * [📕 Spotify](tutorials/spotify.md) +* [📕 Genius API Token](tutorials/genius.md) ## About Us From bc5301e1f840aee56944cb497a23d6cfd8e098c1 Mon Sep 17 00:00:00 2001 From: LinuxGuy312 <101087324+LinuxGuy312@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:51:23 +0530 Subject: [PATCH 4/4] -Bm to -m --- docs/installation/hosting/self-host.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation/hosting/self-host.md b/docs/installation/hosting/self-host.md index 0e0b807515..bb828711ce 100644 --- a/docs/installation/hosting/self-host.md +++ b/docs/installation/hosting/self-host.md @@ -51,7 +51,7 @@ virtualenv venv && source venv/bin/activate && pip3 install -r requirements.txt ### 〣 _**All setup completed, its time to run the bot.**_ -* _**Run:**_ `python3 -Bm userbot` +* _**Run:**_ `python3 -m userbot` * _**Close Screen:**_ Press CTRL+A and after that CTRL+D * _**Check:**_ `screen -ls` * _**Reattach Screen:**_ `screen -r .catuserbot`