/[sudobot]/trunk/src/commands/automation/ScheduleCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/automation/ScheduleCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 51 by rakin, Mon Jul 29 17:28:23 2024 UTC revision 55 by rakin, Mon Jul 29 17:28:24 2024 UTC
# Line 64  export default class ScheduleCommand ext Line 64  export default class ScheduleCommand ext
64    
65              text = args.join(' ');              text = args.join(' ');
66          }          }
67            
68            if (!channel.send) {
69                await msg.reply({
70                    content: 'Invalid text channel.',
71                    ephemeral: true
72                });
73    
74                return;
75            }
76    
77          try {          try {
78              const timeout = await setTimeoutv2('send.ts', time, msg.guild!.id, `schedule ${time} ${text!} #${channel.name}`, text!, channel.id, msg.guild!.id);              const timeout = await setTimeoutv2('send.ts', time, msg.guild!.id, `schedule ${time} ${text!} #${channel.name}`, text!, channel.id, msg.guild!.id);

Legend:
Removed from v.51  
changed lines
  Added in v.55

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26