gitea-irc-bot 0.6.0
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
- 0.6.0 released a day ago
- deavmi/gitea-irc-bot
- AGPL-3.0
- Copyright © 2023, Tristan B. Kildaire
- Authors:
- Dependencies:
- vibe-d, gogga, hummus, birchwood
- Versions:
-
0.6.0 2025-Jun-30 0.5.0 2024-May-12 0.4.1 2023-Oct-24 0.4.0 2023-Oct-24 0.3.5 2023-Jul-09 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
50 downloads total
-
- Score:
- 0.4
- Short URL:
- gitea-irc-bot.dub.pm