mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-31 01:11:32 +00:00
Changed var to let
This commit is contained in:
parent
2575972e85
commit
8a230f1639
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
var config = require('config');
|
||||
let config = require('config');
|
||||
rolelist = config.get('rolelist');
|
||||
|
||||
exports.commands = [
|
||||
|
@ -13,7 +13,7 @@ exports.addrole = {
|
|||
description: 'description of command',
|
||||
process: function(bot,msg,suffix){
|
||||
// Here the bot,msg and suffix is avaible, this function can be async if needed.
|
||||
var newrole = msg.guild.roles.find('name', suffix);
|
||||
let newrole = msg.guild.roles.find('name', suffix);
|
||||
//var rolecheck = msg.guild.roles;
|
||||
//var rolecheckvar = JSON.parse(rolecheck).find('name', suffix);
|
||||
|
||||
|
@ -46,7 +46,7 @@ exports.delrole = {
|
|||
description: 'description of command',
|
||||
process: function(bot,msg,suffix) {
|
||||
// Here the bot,msg and suffix is avaible, this function can be async if needed.
|
||||
var oldrole = msg.guild.roles.find('name', suffix);
|
||||
let oldrole = msg.guild.roles.find('name', suffix);
|
||||
//console.log(oldrole);
|
||||
//console.log('Delrole Event firing.');
|
||||
//console.log(msg);
|
||||
|
|
Loading…
Add table
Reference in a new issue