go-redmine-discord-notificator

command module
v0.0.0-...-fa0386d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 9 Imported by: 0

README

go-redmine-discord-notificator

完全に個人用に作っているため、雑に書いています

  • 送信元からはSMTPサーバーとして振る舞い、DiscordのDMへメールの題名と本文を送るプロキシ的なやつ
  • メールのToのlocalpartをDisplayNameと考え、MemberListに書かれたDisplayNameと対応するDiscordIDに対してDMを送る
  • 想定としてはRedmineの個人宛通知メールをDiscordに送るためのもの

事前準備

  • MemberListにメアドの@前(≒DisplayName),DiscordのIDの順番で入れたCSVを作る 例:
    DisplayName,DiscordID
    hogeTaro,1234567890
    

動かし方

Linux or macOSを想定しています。

git clone https://github.com/mikuta0407/go-redmine-discord-notificator.git
cd go-redmine-discord-notificator
go build
DISCORD_TOKEN="ReplaceToYourDiscordBotToken" ./go-redmine-discord-notificator
  • -l 0.0.0.0:25とかすれば無防備に25番で口を開ける。
  • 何もしなければ127.0.0.1:1025で開く

参考(というかここの改変)

LICENSE

MIT

Documentation

Overview

Copyright (c) 2016 emersion Copyright (c) 2024 mikuta0407 Released under the MIT license

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL