Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noppefoxwolf/Swiftbot
Swiftbot on slack. Inspired by kishikawakatsumi/swift-compiler-discord-bot
https://github.com/noppefoxwolf/Swiftbot
bot linux slack swift
Last synced: about 1 month ago
JSON representation
Swiftbot on slack. Inspired by kishikawakatsumi/swift-compiler-discord-bot
- Host: GitHub
- URL: https://github.com/noppefoxwolf/Swiftbot
- Owner: noppefoxwolf
- License: mit
- Created: 2019-02-14T05:50:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T06:03:22.000Z (almost 6 years ago)
- Last Synced: 2024-05-02T05:46:15.249Z (8 months ago)
- Topics: bot, linux, slack, swift
- Language: Swift
- Homepage:
- Size: 476 KB
- Stars: 55
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift - Swiftbot - Swiftbot on slack. Inspired by kishikawakatsumi/swift-compiler-discord-bot ` 📝 2 years ago ` (Utility [🔝](#readme))
README
Swiftbot
![](https://github.com/noppefoxwolf/Swiftbot/blob/master/Meta/example.gif)
Swiftbot on slack.
Inspired by [kishikawakatsumi/swift-compiler-discord-bot](https://github.com/kishikawakatsumi/swift-compiler-discord-bot)# Usage
`$ swiftbot --token xoxb-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxx`
# Setup Example
## Ubuntu 18.04
### install dependences
```shell
sudo apt updatesudo apt upgrade
sudo apt install clang libicu-dev libpython-all-dev libssl1.0-dev
// Docker install
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh
// Swift install
wget https://swift.org/builds/swift-4.2.1-release/ubuntu1804/swift-4.2.1-RELEASE/swift-4.2.1-RELEASE-ubuntu18.04.tar.gz
tar xvfz swift-4.2.1-RELEASE-ubuntu18.04.tar.gz
sudo mv swift-4.2.1-RELEASE-ubuntu18.04 /usr/local/swift
```
// export PATH
- Ex: /usr/local/swift/usr/bin/
### Swiftbot build
```shell
git clone [email protected]:noppefoxwolf/Swiftbot.git// Make Docket image
cd Docker
sudo docker build -t kishikawakatsumi/swift:4.2.1 .
// Build and install Swiftbot
swift build -c release
mv ./.build/x86_64-unknown-linux/release/Swiftbot /usr/local/bin/swiftbot
```
### Add Service
```shell
sudo vim /etc/systemd/system/swiftbot.service
``````service
[Unit]
Description = Swift bot[Service]
ExecStart = /usr/local/bin/swiftbot --token "<>"
Restart = always
Type = simple[Install]
WantedBy = multi-user.target
``````shell
sudo systemctl enable swiftbotsudo reboot
```## License
Swiftbot is released under the MIT license. See LICENSE for details.
Dockerfile, run.sh and script.sh by https://github.com/kishikawakatsumi/swift-playground