wiki-postbot/README.md

48 lines
1.0 KiB
Markdown
Raw Normal View History

# wiki-postbot
Bot to add tweets using an extended wikilink syntax to the wiki
Starting with twitter, but then will add masto
2022-10-04 00:47:02 +00:00
2023-05-26 08:18:54 +00:00
# Mediawiki
https://www.mediawiki.org/wiki/Manual:Creating_a_bot
- Go to `Special:BotPasswords`
- Permissions
- Edit existing pages
- Create, edit, and move pages
-
- save to `mediawiki_creds.json` like
```json
{
"user": "Jonny@wikibot",
"password": "<THE BOT PASSWORD>"
}
```
# Slack
Using the `python-slack-sdk` https://slack.dev/python-slack-sdk/
## Make App
https://slack.dev/python-slack-sdk/socket-mode/index.html
- Make slack app - https://api.slack.com/apis/connections/socket#setup
- Assign to workplace
- Permissions
- `channels:history`
- `channels:read`
- `app_mentions:read`
- `chat:write`
- `links:read`
- `reactions:read`
- `reactions:write`
- `users:read`
- Create App-level token with `connections:write`
- Configure app
- Enable socket mode - https://api.slack.com/apis/connections/socket#toggling
- Enable Events - `message.channels`
-