BuildTheEarth/main-bot

aoutmod except add broken

mebrooks01 opened this issue · 4 comments

aoutmod except add broken

Its there just uh the response says err

Before:

Command: /automod except list
grafik

Database:
grafik
(empty)

Executing the Command:

Command: /automod except add Testing
grafik

Database:
grafik
(one Entry)

I think this is the expected behaviour.

Thanks for the testing but i rather think the issue is with the specific word "pippen is"

[2022-02-26 01:57:04] ERROR: Moderator Mebrooks01#7682 tried to run 'automod' command:

QueryFailedError: Duplicate entry 'Pippen is' for key 'PRIMARY'

    at QueryFailedError.TypeORMError [as constructor] (/etc/buildtheearth/main-bot/node_modules/typeorm/error/TypeORMError.js:9:28)

    at new QueryFailedError (/etc/buildtheearth/main-bot/node_modules/typeorm/error/QueryFailedError.js:13:28)

    at Query.onResult (/etc/buildtheearth/main-bot/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:193:57)

    at Query.execute (/etc/buildtheearth/main-bot/node_modules/mysql2/lib/commands/command.js:31:14)

    at PoolConnection.handlePacket (/etc/buildtheearth/main-bot/node_modules/mysql2/lib/connection.js:456:32)

    at PacketParser.onPacket (/etc/buildtheearth/main-bot/node_modules/mysql2/lib/connection.js:85:12)

    at PacketParser.executeStart (/etc/buildtheearth/main-bot/node_modules/mysql2/lib/packet_parser.js:75:16)

    at Socket.<anonymous> (/etc/buildtheearth/main-bot/node_modules/mysql2/lib/connection.js:92:25)

    at Socket.emit (node:events:520:28)

    at addChunk (node:internal/streams/readable:315:12)

Seems to be a duplicate entry issue