get rid of pointless logging
This commit is contained in:
parent
d647aad6bc
commit
84c89564a0
|
@ -11,8 +11,7 @@ void on_ready(struct discord *client, const struct discord_ready *msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_message(struct discord *client, const struct discord_message *msg) {
|
void on_message(struct discord *client, const struct discord_message *msg) {
|
||||||
log_info("%s", msg->content);
|
if(msg->type == DISCORD_MESSAGE_REPLY && msg->content != NULL) {
|
||||||
if(msg->type == DISCORD_MESSAGE_REPLY && msg->content != NULL) {
|
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
sprintf(buf, "INSERT INTO messages(message, reply)"
|
sprintf(buf, "INSERT INTO messages(message, reply)"
|
||||||
"VALUES('%s', '%s')",
|
"VALUES('%s', '%s')",
|
||||||
|
|
Loading…
Reference in a new issue