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

Diff of /trunk/commands/warn.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 10 by rakin, Mon Jul 29 17:28:12 2024 UTC
# Line 70  module.exports = { Line 70  module.exports = {
70              console.log(data);              console.log(data);
71          });          });
72      },      },
73      async warn(user, reason, msg, callback) {      async warn(user, reason, msg, callback, warned_by1) {
74          await app.db.get('INSERT INTO warnings(user_id, guild_id, strike, reason, warned_by) VALUES(?, ?, 1, ?, ?)', [user.id, msg.guild.id, reason === undefined ? '\c\b\c' : reason, msg.author.id], async (err) => {          await app.db.get('INSERT INTO warnings(user_id, guild_id, strike, reason, warned_by) VALUES(?, ?, 1, ?, ?)', [user.id, msg.guild.id, reason === undefined ? '\c\b\c' : reason, warned_by1 === undefined ? msg.author.id : warned_by1], async (err) => {
75              if (err) {              if (err) {
76                  console.log(err);                  console.log(err);
77              }              }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26