Giter VIP home page Giter VIP logo

schedulebot's People

Contributors

mellamopablo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

schedulebot's Issues

heroku database login failure

following directions from the heroku deployment guide

receiving db deploy login failure
{ error: password authentication failed for user "jfnbqhezghdzbj"
at Connection.parseE (C:\Users\Christopher Thompson\schedulebot\node_modules\pg\lib\connection.js:569:11)
at Connection.parseMessage (C:\Users\Christopher Thompson\schedulebot\node_modules\pg\lib\connection.js:396:17)
at Socket. (C:\Users\Christopher Thompson\schedulebot\node_modules\pg\lib\connection.js:132:22)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:551:20)
name: 'error',
length: 110,
severity: 'FATAL',
code: '28P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '307',
routine: 'auth_failed' }

Can't turn off the No Fun / cant start games in the past.

So, I am trying to setup through Heroku, and allot of the deployment settings don't seem to be working.

No matter what I do I can't get the No fun to disbale, and the create with a future time is not working.

I have triple checked the time zone settings, and redone the installation process.

Not deploying from Heroku

Quote of the website

There was an issue building your app. This can mean your app.json's project is not a valid Heroku application. Please ensure your app is deployable to Heroku and try again.

BOT OFFLINE

Hello! I add the bot on my channel but is offline.. and command dind't work.

Standard version is unmaintained for now

Hello. I'm not going to maintain the Standard version (master and heroku branches) for now.

The master branch is currently way behind dota: it is stuck on vesion 1.0.2, while dota is in 2.0.0. Since I published the dota version on Reddit, I've been improving it; and by doing so, also modifying functionality that affected the Standard version, while not updating it. For instance, a bug fix in 1.1.1 didn't make it to master (See #28).

As a result, the Standard version is currently obsolete, and updating it would take a considerable amount of effort. At this point, it's better to build schedulebot around a "plugin" architecture: the core of it being the standard version, and the Dota features being added by a Dota plugin (as described in #27).

The reason for writing this issue is to let you know that that I'm not going to do that refactor yet because I currently don't have the time nor the motivation for it. However, I would like to do it somewhere in the future, not only bringing the Standard version back, but opening the door to integration with other games or services via plugins.

Pull requests are also welcome, but I would appreciate to be contacted before any work is put into it to coordinate the refactoring.

Sorry for the inconvenience.

Cannot find module 'heroku-client'

I'm installing on a namecheap server in their node v10 virtual environment.

npm run setup
npm WARN lifecycle The node binary used for scripts is /home/eatihgxc/nodevenv/eclipsediscord/10/bin/node but npm is using /opt/alt/alt-nodejs10/root/usr/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.

[email protected] setup /home/eatihgxc/eclipsediscord/schedulebot
node ./setup/index.js

internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'heroku-client'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/eatihgxc/eclipsediscord/schedulebot/setup/index.js:3:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] setup: node ./setup/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /home/eatihgxc/.npm/_logs/2021-01-04T14_08_02_044Z-debug.log

Single version

Would it be possible to combine the dota and standard editions into a single version?

A couple of different methods come to mind:

  1. Dota-specific commands could be prefixed with "dota ".

  2. When creating an event specify the game @ScheduleBot create dota "My Custom Event" "01/01/2016 15:00"

You could allow for other games down the road. With either of these methods you could turn on/off specific games.

Dota login error

Error: Incorrect login details were provided.

Getting this right after the line in the app log (on Heroku):
[STEAM] Successfully logged in!
[DOTA] Running!

Hosted with Heroku, re-ran the setup and setup-steam commands to make sure I got the details right. Steam says it's logging in correctly... so I'm lost.

get-lobby command error

Hello,

After i run "@botName get-lobby id" this error is shown "An internal error occurred while trying to execute the command get-lobby."

In console on my linux server i get such message : Error: The bot with ID null doesn't exist.
at DotaHandler.getLobbyDetails (/home/dotabot/Documents/schedulebot/lib/modules/dotahandler/index.js:143:10)
at db.getLobbyBotId.then.botID (/home/dotabot/Documents/schedulebot/lib/commands/admin/get-lobby.js:17:41)

When i tried "@botName add-inhouse id" it returned that this command doesn't exist.

Keep getting Wrong options passed into the Clapp constructor

Hi I keep getting the following error when i attempt to npm run bot

Error: Wrong options passed into the Clapp constructor. Please refer to the documentation.

My node ./lib/index.js keeps failing as it says in the log & my npm-debug.log is

0 info it worked if it ends with ok
1 verbose cli [ '/home/xibot/.nvm/versions/node/v7.4.0/bin/node',
1 verbose cli   '/home/xibot/.nvm/versions/node/v7.4.0/bin/npm',
1 verbose cli   'run',
1 verbose cli   'bot' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebot', 'bot', 'postbot' ]
5 info lifecycle [email protected]~prebot: [email protected]
6 silly lifecycle [email protected]~prebot: no script for prebot, continuing
7 info lifecycle [email protected]~bot: [email protected]
8 verbose lifecycle [email protected]~bot: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~bot: PATH: /home/xibot/.nvm/versions/node/v7.4.0/lib/node_modules/npm/bin/node-gyp-bin:/home/xibot/schedulebot/node_modules/.bin:/home/xibot/.nvm/versions/node/v7.4.0/bin:/home/xibot/bin:/home/xibot/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/snap/bin
10 verbose lifecycle [email protected]~bot: CWD: /home/xibot/schedulebot
11 silly lifecycle [email protected]~bot: Args: [ '-c', 'node ./lib/index.js' ]
12 silly lifecycle [email protected]~bot: Returned: code: 1  signal: null
13 info lifecycle [email protected]~bot: Failed to exec bot script
14 verbose stack Error: [email protected] bot: `node ./lib/index.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/home/xibot/.nvm/versions/node/v7.4.0/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/home/xibot/.nvm/versions/node/v7.4.0/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:885:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/xibot/schedulebot
17 error Linux 4.4.0-87-generic
18 error argv "/home/xibot/.nvm/versions/node/v7.4.0/bin/node" "/home/xibot/.nvm/versions/node/v7.4.0/bin/npm" "run" "bot"
19 error node v7.4.0
20 error npm  v4.0.5
21 error code ELIFECYCLE
22 error [email protected] bot: `node ./lib/index.js`
22 error Exit status 1
23 error Failed at the [email protected] bot script 'node ./lib/index.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the schedulebot package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node ./lib/index.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs schedulebot
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls schedulebot
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Installation/Setup missing cli-table2 for heroku deployment

After completing the setup, it appears the app crashes.

This is with heroku deployment.

If I go to the console and type npm run bot I get the same error as if I restart all dynos.

Not a Node.js guy so this might be a simple fix if I install the right packages.

LOG:

2018-06-16T05:05:26.685192+00:00 heroku[bot.1]: State changed from crashed to starting
2018-06-16T05:05:31.108373+00:00 heroku[bot.1]: Starting process with command `node ./lib/index.js`
2018-06-16T05:05:31.817406+00:00 heroku[bot.1]: State changed from starting to up
2018-06-16T05:05:33.554451+00:00 heroku[bot.1]: Process exited with status 1
2018-06-16T05:05:33.479687+00:00 app[bot.1]: module.js:472
2018-06-16T05:05:33.479710+00:00 app[bot.1]:     throw err;
2018-06-16T05:05:33.479712+00:00 app[bot.1]:     ^
2018-06-16T05:05:33.479713+00:00 app[bot.1]: 
2018-06-16T05:05:33.479715+00:00 app[bot.1]: Error: Cannot find module 'cli-table2'
2018-06-16T05:05:33.479717+00:00 app[bot.1]:     at Function.Module._resolveFilename (module.js:470:15)
2018-06-16T05:05:33.479719+00:00 app[bot.1]:     at Function.Module._load (module.js:418:25)
2018-06-16T05:05:33.479720+00:00 app[bot.1]:     at Module.require (module.js:498:17)
2018-06-16T05:05:33.479722+00:00 app[bot.1]:     at require (internal/module.js:20:19)
2018-06-16T05:05:33.479724+00:00 app[bot.1]:     at Object.<anonymous> (/app/lib/modules/clapp-discord/index.js:4:12)
2018-06-16T05:05:33.479725+00:00 app[bot.1]:     at Module._compile (module.js:571:32)
2018-06-16T05:05:33.479727+00:00 app[bot.1]:     at Object.Module._extensions..js (module.js:580:10)
2018-06-16T05:05:33.479728+00:00 app[bot.1]:     at Module.load (module.js:488:32)
2018-06-16T05:05:33.479730+00:00 app[bot.1]:     at tryModuleLoad (module.js:447:12)
2018-06-16T05:05:33.479731+00:00 app[bot.1]:     at Function.Module._load (module.js:439:3)
2018-06-16T05:05:33.573377+00:00 heroku[bot.1]: State changed from up to crashed

Possible bug - invisible lobby

using v1.0.6:
I made an event with the create command and added inhouse (8 hours before the event would take place).
Didn't get a normal lobby invite from the bot, used resend-invite and joined the lobby. The lobby was invisible though. In dota I could click 'back to lobby', but nothing happened. I couldnt join any other lobby or start matchmaking after that, I had to use 'force_leave_game_button 1' in the dota 2 console. Could this be because the event was created 8 hours early?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.