mirror of
https://git.phreedom.club/localhost_frssoft/mastodon-group-bot.git
synced 2025-07-16 15:04:14 +00:00
init
This commit is contained in:
commit
cd868e44b1
4 changed files with 142 additions and 0 deletions
35
README.md
Normal file
35
README.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Mastodon group bot
|
||||
|
||||
This is a bot which implements group functionality in Mastodon.
|
||||
|
||||
# Configuration
|
||||
|
||||
The bot is configured in a JSON file that looks like this:
|
||||
|
||||
```
|
||||
{
|
||||
"Server": "https://example.com",
|
||||
"ClientID": "0000000000000000000000000000000000000000000",
|
||||
"ClientSecret": "0000000000000000000000000000000000000000000",
|
||||
"AccessToken": "0000000000000000000000000000000000000000000",
|
||||
"WelcomeMessage": "We have a new member in our group. Please love and favor"
|
||||
}
|
||||
```
|
||||
|
||||
# Building
|
||||
|
||||
```
|
||||
go mod init mastodon-group-bot
|
||||
|
||||
go mod tidy
|
||||
|
||||
go build
|
||||
```
|
||||
|
||||
# Usage
|
||||
|
||||
```
|
||||
Usage of mastodon-group-bot:
|
||||
-config string
|
||||
Path to config (default "config.json")
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue