Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
/ swp-bot Public archive

This repo temporarily holds the code for my Discord bot that interacts with Bitbuckets API

License

Notifications You must be signed in to change notification settings

MDr164/swp-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

!DISLCAIMER!

This repo is no longer maintained. It was basically my first approach on Go and worked for the duration of the software project it was used in. There is no longer a use case for me and this code will likely not see any maintenance from anyone. But feel free to fork and revive it in case this code looks useful to you.

swp-bot

This is a Discord Bot which can interact with the REST API of Bitbucket and soon Jira. It was created as a tool to aid team dynamic in a software project, hence the name swp-bot. In order to work correctly, the resulting binary needs to be invoked with a config file via -config which for now is written in json and should be filled as follows:

{
"BITBUCKET_TOKEN": "<TOKEN>",
"DISCORD_TOKEN": "<TOKEN>",
"BITBUCKET_URL_1": "https://your.bitbucket.instance/rest/api/1.0/path/to/your/repo/pull-requests?limit=5",
"PING_CHANNEL": "<DISCORD_CHANNEL_ID>",
"RELAY_CHANNEL": "<DISCORD_CHANNEL_ID>",
"<BITBUCKET_USERNAME>": "<DISCORD_USER_ID>",
"<DISCORD_USER_ID>": "<BITBUCKET_USERNAME>",
"VIP": "<DISCORD_USER_ID>"
}

The number of users in this file is not restricted, each user should be written down with both the Bitbucket username first and second for now. The VIP is restricted to one for now, but can be extended to an unlimited amount soon. The Limit=5 is added to the URL simply to comply with Discords 6000 character limit. In addition to the config, a port to listen for webhook events can be specified via -port and defaults to 50015.

About

This repo temporarily holds the code for my Discord bot that interacts with Bitbuckets API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages