Skip to content

cuspaceflight/slack-parrotbot

Repository files navigation

Slack parrotbot

A collection of slack tools used on the CUSF workspace

Parrotmaker

T h e    P a r r o t    G o d s    S p e a k    T o    U s

use it with /parrot message

parrotmaker example

PONG

The world's worst video rendering system and... a playable version of PONG. pong example

Usage

/pong         setup game
/register     register as a player
/start        start game
/u            move paddle up
/d            move paddle down

Google Drive Auto Upload

Literally the only thing useful about parrotbot. But it's boring so that's why it's at the bottom.

Setting it up

Something like:

# cd /opt && git clone https://github.com/smh-my-head/slack-parrotbot
# apt install rclone python3-pip
# pip3 install slack_bolt
# mkdir -p /var/opt/slack-parrotbot/files
# rclone config
2021/04/26 12:19:08 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> parrotbot-gdrive
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
.
.
Storage> drive
.
. (defaults)
.
Scope that rclone should use when requesting access from drive.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
.
.
scope> 1
.
. (defaults)
.
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine or Y didn't work
y) Yes
n) No
y/n> n
If your browser doesn't open automatically go to the following link: <snip>
Log in and authorize rclone for access
Enter verification code> <snip>
Configure this as a team drive?
y) Yes
n) No
y/n> n
--------------------
[parrotbot-gdrive]
scope = drive
token = <snip>
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:

Name                 Type
====                 ====
parrotbot-gdrive     drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q

# rclone sync --drive-shared-with-me parrotbot-gdrive:CUSF/slack-staging /var/opt/slack-parrotbot/files
# cp slack-parrotbot.service /etc/systemd/system/
# systemctl daemon-reload
# systemctl start slack-parrotbot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •