create-chapterjs 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-chapterjs",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Creates a ChapterJS Discord bot: pnpm create chapterjs",
5
5
  "keywords": [
6
6
  "discord",
@@ -2,3 +2,6 @@
2
2
  BOT_TOKEN=
3
3
  # The ID of the server used by `chapterjs dev` (right-click the server → Copy Server ID)
4
4
  DEV_GUILD_ID=
5
+ # Only for stores declared with storage: 'redis' (https://www.chapterjs.org/storage#in-redis)
6
+ # REDIS_URL=redis://localhost:6379
7
+ # REDIS_PASSWORD=
@@ -19,12 +19,10 @@ export default event({
19
19
  // `user` is always there.
20
20
  export const goodbye = event({
21
21
  name: 'memberLeave',
22
- async run({ user, member, guild, t }) {
22
+ async run({ user, guild, t }) {
23
23
  const channel = communityChannel(guild, 'welcome');
24
24
  if (!channel) return;
25
- await channel.send(
26
- t('goodbye', { name: member?.displayName ?? user.displayName })
27
- );
25
+ await channel.send(t('goodbye', { name: user.displayName }));
28
26
  },
29
27
  });
30
28
 
@@ -2,3 +2,6 @@
2
2
  BOT_TOKEN=
3
3
  # The ID of the server used by `chapterjs dev` (right-click the server → Copy Server ID)
4
4
  DEV_GUILD_ID=
5
+ # Only for stores declared with storage: 'redis' (https://www.chapterjs.org/storage#in-redis)
6
+ # REDIS_URL=redis://localhost:6379
7
+ # REDIS_PASSWORD=
@@ -2,3 +2,6 @@
2
2
  BOT_TOKEN=
3
3
  # The ID of the server used by `chapterjs dev` (right-click the server → Copy Server ID)
4
4
  DEV_GUILD_ID=
5
+ # Only for stores declared with storage: 'redis' (https://www.chapterjs.org/storage#in-redis)
6
+ # REDIS_URL=redis://localhost:6379
7
+ # REDIS_PASSWORD=
@@ -2,3 +2,6 @@
2
2
  BOT_TOKEN=
3
3
  # The ID of the server used by `chapterjs dev` (right-click the server → Copy Server ID)
4
4
  DEV_GUILD_ID=
5
+ # Only for stores declared with storage: 'redis' (https://www.chapterjs.org/storage#in-redis)
6
+ # REDIS_URL=redis://localhost:6379
7
+ # REDIS_PASSWORD=
@@ -2,3 +2,6 @@
2
2
  BOT_TOKEN=
3
3
  # The ID of the server used by `chapterjs dev` (right-click the server → Copy Server ID)
4
4
  DEV_GUILD_ID=
5
+ # Only for stores declared with storage: 'redis' (https://www.chapterjs.org/storage#in-redis)
6
+ # REDIS_URL=redis://localhost:6379
7
+ # REDIS_PASSWORD=