-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from traPtitech/add-events
イベント追加
- Loading branch information
Showing
6 changed files
with
176 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
package traqbot | ||
|
||
const ( | ||
// Ping PINGイベント | ||
// Ping Pingイベント | ||
Ping = "PING" | ||
// Joined JOINEDイベント | ||
// Joined チャンネル参加イベント | ||
Joined = "JOINED" | ||
// Left LEFTイベント | ||
// Left チャンネル退出イベント | ||
Left = "LEFT" | ||
// MessageCreated MESSAGE_CREATEDイベント | ||
// MessageCreated メッセージ作成イベント or メンションメッセージ作成イベント | ||
MessageCreated = "MESSAGE_CREATED" | ||
// DirectMessageCreated DIRECT_MESSAGE_CREATEDイベント | ||
// MessageUpdated メッセージ編集イベント | ||
MessageUpdated = "MESSAGE_UPDATED" | ||
// MessageDeleted メッセージ削除イベント | ||
MessageDeleted = "MESSAGE_DELETED" | ||
// BotMessageStampsUpdated BOTメッセージスタンプ更新イベント | ||
BotMessageStampsUpdated = "BOT_MESSAGE_STAMPS_UPDATED" | ||
// DirectMessageCreated ダイレクトメッセージ作成イベント | ||
DirectMessageCreated = "DIRECT_MESSAGE_CREATED" | ||
// ChannelCreated CHANNEL_CREATEDイベント | ||
// DirectMessageUpdated ダイレクトメッセージ編集イベント | ||
DirectMessageUpdated = "DIRECT_MESSAGE_UPDATED" | ||
// DirectMessageDeleted ダイレクトメッセージ削除イベント | ||
DirectMessageDeleted = "DIRECT_MESSAGE_DELETED" | ||
// ChannelCreated チャンネル作成イベント | ||
ChannelCreated = "CHANNEL_CREATED" | ||
// ChannelTopicChanged CHANNEL_TOPIC_CHANGEDイベント | ||
// ChannelTopicChanged チャンネルトピック変更イベント | ||
ChannelTopicChanged = "CHANNEL_TOPIC_CHANGED" | ||
// UserCreated USER_CREATEDイベント | ||
// UserCreated ユーザー作成イベント | ||
UserCreated = "USER_CREATED" | ||
// StampCreated スタンプ作成イベント | ||
StampCreated = "STAMP_CREATED" | ||
// TagAdded タグ追加イベント | ||
TagAdded = "TAG_ADDED" | ||
// TagRemoved タグ削除イベント | ||
TagRemoved = "TAG_REMOVED" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
module github.com/traPtitech/traq-bot | ||
|
||
go 1.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters