Skip to content

Commit

Permalink
2.4.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
chasyumen committed Sep 8, 2022
1 parent 8352d90 commit c683de5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bot/events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ module.exports = {
event: "messageCreate",
exec: async function (message) {
if (message.author.bot) return;
if (message.channel.type !== "0") {
if (!(message.channel.type == "0")) {
return;
}
var channelData = await message.channel.getdb();
if (channelData.autoReply) {
if (!message.channel.permissionsFor(message.guild.me).has([1 << 10, 1 << 11])) return;
if (!message.channel.permissionsFor((await message.guild.members.fetchMe())).has([1 << 10, 1 << 11])) return;
if (message.content.match(//)) {
message.reply("いらっさい");
} else if (message.content.match(//)) {
Expand Down
1 change: 1 addition & 0 deletions bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const client = (global.client = new Client({
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
// GatewayIntentBits.DirectMessageTyping,
GatewayIntentBits.MessageContent,
],
allowedMentions: { repliedUser: false },
presence: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "irassai-bot",
"version": "2.4.0",
"version": "2.4.1",
"description": "新・いらっさいbot",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions updates.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.4.1
自動返信機能の修正

2.4.0
BitFieldの仕様変更への対応

Expand Down

0 comments on commit c683de5

Please sign in to comment.