laptopwiki:guides:discord:stickybot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
laptopwiki:guides:discord:stickybot [18/07/2024 21:03] dustojnikhummerlaptopwiki:guides:discord:stickybot [18/07/2024 21:11] (current) – [Run stickybot in the background] dustojnikhummer
Line 10: Line 10:
 ===== Requirements ===== ===== Requirements =====
  
-  * A Linux webhost (in the case of this guide Debian/Ubuntu Server) +  * A Linux webhost 
-  * npm (sudo apt install npm)+  * npm
   * npm dotenv (npm install dotenv)   * npm dotenv (npm install dotenv)
   * nodejs   * nodejs
Line 22: Line 22:
 ===== Download ===== ===== Download =====
  
-Download here: [[https://cdn.laptopwiki.eu/public/bots/stickybot.zip|CDN]]+Download here: [[https://cdn.laptopwiki.eu/public/laptopwiki/stickybot.zip|CDN]]
  
 Unzip the archive and copy its contents to your Linux server. Alternatively, run: Unzip the archive and copy its contents to your Linux server. Alternatively, run:
 <code> <code>
  
-wget https://cdn.laptopwiki.eu/internal/bots/sticky-message.zip+wget https://cdn.laptopwiki.eu/public/laptopwiki/sticky-message.zip
  
 </code> </code>
Line 107: Line 107:
 Now install dependencies for the bot: Now install dependencies for the bot:
  
 +Fedora/AlmaLinux or other RHEL derivatives
 +<code>sudo dnf install npm</code>
 +
 +Debian/Ubuntu or other Debian derivatives
 +<code>sudo apt install npm</code>
 +
 +Install NPM dependencies
 <code> <code>
 npm install npm install
- 
 </code> </code>
  
Line 119: Line 125:
  
 </code> </code>
 +Install dotenv
 +<code>npm install dotenv</code>
  
 Now run the bot with: Now run the bot with:
Line 177: Line 185:
 Do not add , to the very last line, that won't work. Do not add , to the very last line, that won't work.
  
-===== Run stickybot in the background =====+===== Run stickybot in the background manually =====
  
 Unless you want to keep the SSH connection active all the time to keep the bot running you will need to run it in the background. To do that we will use a Linux terminal application called [[https://www.gnu.org/software/screen/|Screen]] \\ Unless you want to keep the SSH connection active all the time to keep the bot running you will need to run it in the background. To do that we will use a Linux terminal application called [[https://www.gnu.org/software/screen/|Screen]] \\
  • laptopwiki/guides/discord/stickybot.1721329395.txt.gz
  • Last modified: 18/07/2024 21:03
  • by dustojnikhummer