/[sudobot]/trunk/commands/note.js
ViewVC logotype

Diff of /trunk/commands/note.js

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

revision 5 by rakin, Mon Jul 29 17:28:11 2024 UTC revision 37 by rakin, Mon Jul 29 17:28:18 2024 UTC
# Line 1  Line 1 
1    const History = require("../src/History");
2  const MessageEmbed = require("../src/MessageEmbed");  const MessageEmbed = require("../src/MessageEmbed");
3    
4  module.exports = {  module.exports = {
# Line 42  module.exports = { Line 43  module.exports = {
43    
44              return;              return;
45          }          }
46            
47          this.note(user, content, msg);          await History.create(user.id, msg.guild, 'note', msg.author.id, null, async (data2) => {
48                this.note(user, content, msg);
49            });
50    
51          await msg.reply({          await msg.reply({
52              embeds: [              embeds: [
53                  new MessageEmbed()                  new MessageEmbed()
54                  .setDescription(`A note has been added for ${user.user.tag}`)                  .setDescription(`A note has been added for ${user.user.tag}`) // TODO
55              ]              ]
56          });          });
57      },      },

Legend:
Removed from v.5  
changed lines
  Added in v.37

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26