Commit eed33ec5 authored by Benjamin Pill's avatar Benjamin Pill

Fix default bot username (must be lowercase)

parent a055f529
......@@ -2,7 +2,7 @@
"id": "matttermost-plugin-newchannelnotify",
"name": "New Channel Notify",
"description": "Notifies people for newly created channels",
"version": "0.9.0",
"version": "0.9.1",
"min_server_version": "5.10.0",
"server": {
"executables": {
......@@ -17,8 +17,8 @@
"key": "BotUserName",
"display_name": "Bot Name",
"type": "text",
"help_text": "The bot user which is used to post the messages - non existing bots will be created automatically.",
"placeholder": "New-Channel-Bot"
"help_text": "Must be lowercase. The bot user which is used to post the messages - non existing bots will be created automatically.",
"placeholder": "Newchannelbot"
},
{
"key": "ChannelToPost",
......
......@@ -12,7 +12,7 @@ func (p *NewChannelNotifyPlugin) ensureBotExists() {
p.API.LogInfo("Bot user doesnt exist -> creating")
_, err := p.API.CreateBot(&model.Bot{
Username: config.BotUserName,
DisplayName: config.BotUserName,
DisplayName: "NewChannelBot",
})
if err != nil {
......
......@@ -5,5 +5,5 @@ var manifest = struct {
Version string
}{
Id: "matttermost-plugin-newchannelnotify",
Version: "0.9.0",
Version: "0.9.1",
}
......@@ -8,7 +8,7 @@ import (
"github.com/mattermost/mattermost-server/plugin"
)
const defaultBotName = "New-Channel-Bot"
const defaultBotName = "newchannelbot"
type NewChannelNotifyPlugin struct {
plugin.MattermostPlugin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment