Skip to content

Commit

Permalink
Fixed bug in db_setup.sql
Browse files Browse the repository at this point in the history
ID being INTEGER and not SERIAL would cause internal errors with the "create" command.
  • Loading branch information
MeLlamoPablo committed Dec 10, 2016
1 parent 761e4c1 commit 6fb5196
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db_setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE public.blacklist

CREATE TABLE events
(
id INTEGER PRIMARY KEY NOT NULL,
id SERIAL PRIMARY KEY NOT NULL,
name TEXT,
time BIGINT,
summary_msg_id TEXT,
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let generalApp = new Clapp.App({
name: cfg.name,
desc: pkg.description,
prefix: cfg.prefix,
version: pkg.version,
version: pkg.version + "-DotaEdition",
onReply: (msg, context) => {
let send = function(content) {
masterChannel.sendMessage(content).then(botMessage => {
Expand Down Expand Up @@ -60,7 +60,7 @@ let adminApp = new Clapp.App({
name: cfg.name + "-admin",
desc: cfg.admin_app.desc + "\nhttps://github.com/MeLlamoPablo/schedulebot",
prefix: cfg.admin_app.prefix,
version: pkg.version,
version: pkg.version + "-DotaEdition",
onReply: (msg, context) => {
context.msg.reply('\n' + msg).then(bot_response => {
if (cfg.delete_after_reply.enabled) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "schedulebot",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Discord bot that makes scheduling easy",
"homepage": "https://github.com/mellamopablo/schedulebot#readme",
"author": "Pablo Rodríguez <pabloviolin8@gmail.com> (https://github.com/MeLlamoPablo)",
Expand Down

0 comments on commit 6fb5196

Please sign in to comment.