gitea-irc-bot ~master
A Gitea webhook-based IRC bot
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
gitea-irc-bot
Usage
Webhook setup
You should setup the following webhooks on your Gitea instance:
HOSTNAME:PORT/issue
- MIME type:
application/json
- Method:
POST
- Enable "Custom Events":
Issues
Issue Labeled
Issue Comment
Issue Milestoned
Issue Assigned
- MIME type:
HOSTNAME:PORT/commit
- MIME type:
application/json
- Method:
POST
- Enable "Custom Events":
Push
- MIME type:
Building
Simply clone the repository with:
git clone https://github.com/deavmi/gitea-irc-bot
Then run the following command to build the library:
cd gitea-irc-bot
dub build
Configuring
You should have a config.json
in the repository. You can now customize this to tweak settings for the bot.
An example configuration file can look as follows:
{
"irc" : {
"host": "irc.freenode.net",
"port": 6667,
"nickname": "tlangbot",
"realname": "TLang Development Bot",
"username": "tbot",
"channels": {
"tlang" : "#tlang",
"repoName" : "#destinationChannel"
}
},
"ntfy": {
"endpoint": "http://ntfy.sh",
"topic": "myTestFr"
}
}
Note: gitea-irc-bot
will always look for a configuration file named config.json
in the current working directory
Environment variables
An example configuration file appears as follows:
# Webhook configuration
export WEBHOOK__BINDADDRESS="0.0.0.0"
export WEBHOOK__PORT=8080
# IRC server
export IRC__HOST="pinewood.irc.bnet.eu.org"
export IRC__PORT=6667
export IRC__NICKNAME="GiteaBot"
export IRC__REALNAME="A Gitea bot written by deavmi"
export IRC__CHANNELS="tlang:#tlang;thing2:#thing2Chan"
export IRC__USERNAME="tbot"
# Ntfy.sh
export NTFY__ENDPOINT="http://ntfy.sh"
export NTFY__TOPIC="tlang_dev"
Note: Specifying an environment variable will override the respective configuration parameter entirely.
License
AGPL 3.0
Credits
Thanks so much to selckin
and BtbN
on Libera IRC,
helped me with the GitHub Actions and fixing my erroneous
Dockerfile
.
- ~master released 29 days ago
- deavmi/gitea-irc-bot
- AGPL-3.0
- Copyright © 2023, Tristan B. Kildaire
- Authors:
- Dependencies:
- vibe-d, gogga, hummus, birchwood
- Versions:
-
0.7.8 2025-Jul-01 0.7.7 2025-Jul-01 0.7.6 2025-Jul-01 0.7.5 2025-Jun-30 0.7.4 2025-Jun-30 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
51 downloads total
-
- Score:
- 0.1
- Short URL:
- gitea-irc-bot.dub.pm