Skip to content

Commit

Permalink
Merge pull request #7 from chasyumen/dev-2.4.3
Browse files Browse the repository at this point in the history
2.4.3 update
  • Loading branch information
chasyumen authored Nov 10, 2023
2 parents cfaed61 + a10863f commit 79ccb77
Show file tree
Hide file tree
Showing 9 changed files with 296 additions and 358 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,5 @@ dist
# TernJS port file
.tern-port

test/
test/
config.json
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 chasyumen
Copyright (c) 2023 chasyumen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# いらっさいbot
Discordの新・いらっさいbotのv2です

[Botを招待](https://discord.com/api/oauth2/authorize?client_id=829461650661703728&permissions=276555983873&scope=bot%20applications.commands)
[Botを招待](https://discord.com/api/oauth2/authorize?client_id=829461650661703728&permissions=276555983873&scope=bot%20applications.commands)

ソースコードを動作させるには、config.json.sampleをコピーしてconfig.jsonを設定、.env.sampleをコピーして.env.sampleを作成する必要があります。
ソースコード関連の質問は受け付けていませんので自分で検索等をしてやり方を探してください。

**ライセンスにも書いてある通り、このソースコードの使用で発生した損害等の責任は一切負いません。**
1 change: 1 addition & 0 deletions bot/commands/autoreply.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
},
exec: async function (interaction, i, res) {
await res.defer();
return await res.reply("この機能は現在使用できません。");
if (interaction.options.getSubcommand() == "on") {
await i.channel.setdb({autoReply: true});
return await res.reply("自動返信を有効にしました!");
Expand Down
15 changes: 15 additions & 0 deletions config.json.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"adminids": [
"614305573827117066"
],
"modids": [
"794119190793420810"
],
"colors": {
"default_color": 3407689,
"error_color": 16711680
},
"credits": "Made by chasyumen",
"default_color": 3407689,
"logs": "994619401447931945"
}
Loading

0 comments on commit 79ccb77

Please sign in to comment.