We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if jsonbody2["type"] == "message" { user := slacktool.User { UserID: jsonbody2["user"].(string), } slack.AttachUserInfo(&user) if err != nil { http.Error(w, "Failed to get user info", http.StatusInternalServerError) return } dr.Bot.ChannelMessageSend(test_channel_id, fmt.Sprintf("[%s]: %s", user.RealName, jsonbody2["text"])) }
この部分を関数に分離してほしい
将来的に、アイコンを取得する・名前をとってくる・jsonbody2["type"] != "message"(リアクションなど?)の場合 などがあり、大きくなってしまうため
jsonbody2["type"] != "message"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
この部分を関数に分離してほしい
将来的に、アイコンを取得する・名前をとってくる・
jsonbody2["type"] != "message"
(リアクションなど?)の場合 などがあり、大きくなってしまうためThe text was updated successfully, but these errors were encountered: