Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cuspaceflight/slack-parrotbot
https://github.com/cuspaceflight/slack-parrotbot
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cuspaceflight/slack-parrotbot
- Owner: cuspaceflight
- License: wtfpl
- Created: 2021-03-23T02:00:50.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-13T00:07:59.000Z (almost 3 years ago)
- Last Synced: 2024-04-15T20:49:14.441Z (8 months ago)
- Language: Python
- Size: 6.14 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 suse it with `/parrot message`
![parrotmaker example](parrotmaker_example.gif)
## PONG
The world's worst video rendering system and... a playable version of PONG.
![pong example](pong_example.png)**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:
Log in and authorize rclone for access
Enter verification code>
Configure this as a team drive?
y) Yes
n) No
y/n> n
--------------------
[parrotbot-gdrive]
scope = drive
token =
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:Name Type
==== ====
parrotbot-gdrive drivee) 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
```