If someone send a Message Link to following channels, Quote Bot replies the content of that link.
If you do not want Quote Bot to reply, you can escape this by wrapping a link with <>
.
Example: <https://discord.com/channels/GUILD_ID/CHANNEL_ID/MESSAGE_ID>
!quote
: prefix
option | alias | description |
---|---|---|
--version |
-v |
version |
e.g. !quote -v
These are all kobi32768's notebook, but it may be helpful.
kobi32768 not support other environment.
>
Windows
$
Ubuntu
> gradle distZip
Move zipped distribute file on ~/quotebot
with WinSCP
$ unzip quotebot-<version>,zip
Service restart
$ systemctl restart quotebot
Automatically execute latest
Make shell script for bot starting
start-quotebot.sh
:
#!/bin/bash
latest=`ls -drt /home/<user>/quotebot/*/ | tail -n 1`
cd $latest
export DISCORD_TOKEN="<YOUR-DISCORD-TOKEN-HERE>"
./bin/quotebot
Make service file
$ ~/micro /etc/systemd/system/quotebot.service
quotebot.service
:
[Unit]
Description=QuoteBot
After=netwowrk.target
[Service]
Restart=always
ExecStart=/home/<user>/start-quotebot.sh
[Install]
WantedBy=multi-user.target
Reload systemctl
$ systemctl daemon-reload
Check status
$ systemctl list-unit-files | grep quotebot