Skip to content

kobi32768/quotebot

Repository files navigation

Quote Bot

Table of Contents

1 feature

1.1 quote

If someone send a Message Link to following channels, Quote Bot replies the content of that link.

  • TextChannel
  • ThreadChannel
  • VoiceChannel
  • NewsChannel (not tested)
  • StageChannel (not tested)

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>

1.2 command

!quote: prefix

option alias description
--version -v version

e.g. !quote -v

2 deploy

These are all kobi32768's notebook, but it may be helpful.
kobi32768 not support other environment.

> Windows
$ Ubuntu

2.1 distribute

> gradle distZip

2.2 scp

Move zipped distribute file on ~/quotebot with WinSCP

2.3 unzip

$ unzip quotebot-<version>,zip

2.4 systemd

2.4.1 update

Service restart

$ systemctl restart quotebot

2.4.2 setup

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

2.4.3 utility

Check status
$ systemctl list-unit-files | grep quotebot

About

Quote Bot for Discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published