Added server/user count to stats, fixed message not showing on tenor/large image errors
This commit is contained in:
parent
41c8be04cf
commit
ae8b121d03
5 changed files with 23 additions and 6 deletions
|
@ -3,10 +3,9 @@ const logger = require("../logger.js");
|
|||
const misc = require("../misc.js");
|
||||
|
||||
const { Pool } = require("pg");
|
||||
const pool = new Pool({
|
||||
const connection = new Pool({
|
||||
connectionString: process.env.DB
|
||||
});
|
||||
const connection = pool;
|
||||
|
||||
exports.getGuild = async (query) => {
|
||||
return (await connection.query("SELECT * FROM guilds WHERE guild_id = $1", [query])).rows[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue