postkrebs :/
This commit is contained in:
@ -4,8 +4,8 @@ let _query_get = `
|
||||
with ranked_quotes as (
|
||||
select nick,
|
||||
item,
|
||||
rank() over (partition by nick order by id),
|
||||
count(*) over (partition by nick) as total
|
||||
rank() over (partition by lower(nick) order by id),
|
||||
count(*) over (partition by lower(nick)) as total
|
||||
from nxy_quotes
|
||||
)
|
||||
select *
|
||||
@ -43,6 +43,7 @@ module.exports = bot => {
|
||||
sql.any(_query_add, [ nick, quote, `${e.network}.${e.channel}`, e.user.nick ])
|
||||
.then(rows => { })
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
e.reply("duplicate!");
|
||||
});
|
||||
break;
|
||||
|
Reference in New Issue
Block a user