mellowagain / Titan

A free, advanced CS:GO report and commendation bot built with performance and ease-of-use in mind
MIT License
204 stars 56 forks source link

Command line not working #75

Closed ghost closed 6 years ago

ghost commented 6 years ago

Description

Command-line not working, options not found and GUI opening.

Reproduction Steps

  1. Run: Titan report --secure true --target STEAM_0:0:XXXXXXXX

Errors

C:\Users\User\Desktop\Titan>Titan report --secure true --target STEAM_0:0:XXXXXXXX
22:30:45 [Main] DEBUG Titan - Titan was called from: "C:\\Users\\User\\Desktop\\Titan"
22:30:45 [Main] DEBUG Titan - Working in directory: "C:\\Users\\User\\Desktop\\Titan"
22:30:45 [Main] DEBUG Titan - Startup: Loading Serilog <-> Common Logging Bridge.
22:30:45 [Main] DEBUG Titan - Startup: Loading Quartz.NET.
22:30:45 [Main] INFORMATION Quartz.NET Scheduler - Default Quartz.NET properties loaded from embedded resource file
22:30:46 [Main] DEBUG Quartz.NET Scheduler - TaskSchedulingThreadPool configured with max concurrency of 10 and TaskScheduler ThreadPoolTaskScheduler.
22:30:46 [Main] INFORMATION Quartz.NET Scheduler - Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
22:30:46 [Main] INFORMATION Quartz.NET Scheduler - Quartz Scheduler v."3.0.0.0" created.
22:30:46 [Main] INFORMATION Quartz.NET Scheduler - RAMJobStore initialized.
22:30:46 [Main] INFORMATION Quartz.NET Scheduler - Scheduler meta-data: Quartz Scheduler (v3.0.0.0) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'Quartz.Simpl.DefaultThreadPool' - with 10 threads.
  Using job-store 'Quartz.Simpl.RAMJobStore' - which does not support persistence. and is not clustered.

22:30:46 [Main] INFORMATION Quartz.NET Scheduler - Quartz scheduler 'DefaultQuartzScheduler' initialized
22:30:46 [Main] INFORMATION Quartz.NET Scheduler - Quartz scheduler version: 3.0.0.0
22:30:46 [Main] INFORMATION Quartz.NET Scheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
22:30:46 [Main] DEBUG Titan - Startup: Parsing Command Line Arguments.
Titan 1.6.0.0
Copyright © Marc3842h 2017

ERROR(S):
  Option 'target' is unknown.

  -f, --file           (Default: accounts.json) The file containg a list of Steam accounts owning CS:GO that should be
                       used

  -s, --secure         (Default: false) If Secure Mode is enabled, all logs in the console like account passwords and
                       Web API keywill be hidden. Use this if you're recording a video or taking a screenshot of Titan.

  -b, --noblacklist    (Default: false) Disables the Blacklist that is preventing botting of the authors and friend's
                       own bots

  --help               Display this help screen.

  --version            Display version information.

Titan 1.6.0.0
Copyright © Marc3842h 2017

ERROR(S):
  Option 'secure' is unknown.

  -t, --target      Required. SteamID of the target that should be reported

  -m, --match       (Default: 8) Match Sharelink with that the target should be sent into Overwatch

  -i, --index       (Default: -2) Index which should be used for botting: -1 for all accounts, -2 for available index

  --abusivetext     (Default: true)

  --abusivevoice    (Default: true)

  --griefing        (Default: true)

  --aimhacking      (Default: true)

  --wallhacking     (Default: true)

  --otherhacking    (Default: true)

  --help            Display this help screen.

  --version         Display version information.

System Information

Operating System: Windows 10 Titan version: Built from source

mellowagain commented 6 years ago

You don't need to supply true with secure. Just putting secure is enough. Could you try with that? It should find the report verb.

ghost commented 6 years ago
C:\Users\User\Desktop\Titan>titan report --secure --target STEAM_0:0:XXXXXXXX
13:42:28 [Main] DEBUG Titan - Titan was called from: "C:\\Users\\User\\Desktop\\Titan"
13:42:28 [Main] DEBUG Titan - Working in directory: "C:\\Users\\User\\Desktop\\Titan"
13:42:28 [Main] DEBUG Titan - Startup: Loading Serilog <-> Common Logging Bridge.
13:42:28 [Main] DEBUG Titan - Startup: Loading Quartz.NET.
13:42:28 [Main] INFORMATION Quartz.NET Scheduler - Default Quartz.NET properties loaded from embedded resource file
13:42:28 [Main] DEBUG Quartz.NET Scheduler - TaskSchedulingThreadPool configured with max concurrency of 10 and TaskScheduler ThreadPoolTaskScheduler.
13:42:28 [Main] INFORMATION Quartz.NET Scheduler - Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
13:42:28 [Main] INFORMATION Quartz.NET Scheduler - Quartz Scheduler v."3.0.0.0" created.
13:42:28 [Main] INFORMATION Quartz.NET Scheduler - RAMJobStore initialized.
13:42:28 [Main] INFORMATION Quartz.NET Scheduler - Scheduler meta-data: Quartz Scheduler (v3.0.0.0) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'Quartz.Simpl.DefaultThreadPool' - with 10 threads.
  Using job-store 'Quartz.Simpl.RAMJobStore' - which does not support persistence. and is not clustered.

13:42:28 [Main] INFORMATION Quartz.NET Scheduler - Quartz scheduler 'DefaultQuartzScheduler' initialized
13:42:28 [Main] INFORMATION Quartz.NET Scheduler - Quartz scheduler version: 3.0.0.0
13:42:28 [Main] INFORMATION Quartz.NET Scheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
13:42:28 [Main] DEBUG Titan - Startup: Parsing Command Line Arguments.
Titan 1.6.0.0
Copyright © Marc3842h 2017

ERROR(S):
  Option 'target' is unknown.

  -f, --file           (Default: accounts.json) The file containg a list of Steam accounts owning CS:GO that should be
                       used

  -s, --secure         (Default: false) If Secure Mode is enabled, all logs in the console like account passwords and
                       Web API keywill be hidden. Use this if you're recording a video or taking a screenshot of Titan.

  -b, --noblacklist    (Default: false) Disables the Blacklist that is preventing botting of the authors and friend's
                       own bots

  --help               Display this help screen.

  --version            Display version information.

Titan 1.6.0.0
Copyright © Marc3842h 2017

ERROR(S):
  Option 'secure' is unknown.

  -t, --target      Required. SteamID of the target that should be reported

  -m, --match       (Default: 8) Match Sharelink with that the target should be sent into Overwatch

  -i, --index       (Default: -2) Index which should be used for botting: -1 for all accounts, -2 for available index

  --abusivetext     (Default: true)

  --abusivevoice    (Default: true)

  --griefing        (Default: true)

  --aimhacking      (Default: true)

  --wallhacking     (Default: true)

  --otherhacking    (Default: true)

  --help            Display this help screen.

  --version         Display version information.
ghost commented 6 years ago

I removed the -- infront of secure, and added quotes around the target steamid and it seemed to work, however, the second I put -- infront of secure, it doesn't. Edit: Without the -- infront of secure, secure mode does not seem to be activated.

mellowagain commented 6 years ago

Try to start it like this

Titan report --target "target" --secure
ghost commented 6 years ago
C:\Users\User\Desktop\Titan>Titan report --target "STEAM_0:1:XXXXXXXXXXX" --secure
15:39:22 [Main] DEBUG Titan - Titan was called from: "C:\\Users\\User\\Desktop\\Titan"
15:39:22 [Main] DEBUG Titan - Working in directory: "C:\\Users\\User\\Desktop\\Titan"
15:39:22 [Main] DEBUG Titan - Startup: Loading Serilog <-> Common Logging Bridge.
15:39:22 [Main] DEBUG Titan - Startup: Loading Quartz.NET.
15:39:22 [Main] INFORMATION Quartz.NET Scheduler - Default Quartz.NET properties loaded from embedded resource file
15:39:22 [Main] DEBUG Quartz.NET Scheduler - TaskSchedulingThreadPool configured with max concurrency of 10 and TaskScheduler ThreadPoolTaskScheduler.
15:39:22 [Main] INFORMATION Quartz.NET Scheduler - Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
15:39:22 [Main] INFORMATION Quartz.NET Scheduler - Quartz Scheduler v."3.0.0.0" created.
15:39:22 [Main] INFORMATION Quartz.NET Scheduler - RAMJobStore initialized.
15:39:22 [Main] INFORMATION Quartz.NET Scheduler - Scheduler meta-data: Quartz Scheduler (v3.0.0.0) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'Quartz.Simpl.DefaultThreadPool' - with 10 threads.
  Using job-store 'Quartz.Simpl.RAMJobStore' - which does not support persistence. and is not clustered.

15:39:22 [Main] INFORMATION Quartz.NET Scheduler - Quartz scheduler 'DefaultQuartzScheduler' initialized
15:39:22 [Main] INFORMATION Quartz.NET Scheduler - Quartz scheduler version: 3.0.0.0
15:39:22 [Main] INFORMATION Quartz.NET Scheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
15:39:22 [Main] DEBUG Titan - Startup: Parsing Command Line Arguments.
Titan 1.6.0.0
Copyright © Marc3842h 2017

ERROR(S):
  Option 'target' is unknown.

  -f, --file           (Default: accounts.json) The file containg a list of Steam accounts owning CS:GO that should be
                       used

  -s, --secure         (Default: false) If Secure Mode is enabled, all logs in the console like account passwords and
                       Web API keywill be hidden. Use this if you're recording a video or taking a screenshot of Titan.

  -b, --noblacklist    (Default: false) Disables the Blacklist that is preventing botting of the authors and friend's
                       own bots

  --help               Display this help screen.

  --version            Display version information.

Titan 1.6.0.0
Copyright © Marc3842h 2017

ERROR(S):
  Option 'secure' is unknown.

  -t, --target      Required. SteamID of the target that should be reported

  -m, --match       (Default: 8) Match Sharelink with that the target should be sent into Overwatch

  -i, --index       (Default: -2) Index which should be used for botting: -1 for all accounts, -2 for available index

  --abusivetext     (Default: true)

  --abusivevoice    (Default: true)

  --griefing        (Default: true)

  --aimhacking      (Default: true)

  --wallhacking     (Default: true)

  --otherhacking    (Default: true)

  --help            Display this help screen.

  --version         Display version information.

15:39:23 [Main] INFORMATION Titan - No valid verb has been provided while parsing. Opening UI...
ghost commented 6 years ago

Hmmm it seems to work if you specify the arguments one by one in nodejs:

const { execFile } = require('child_process');
const titan = execFile('titan/Titan.exe', ['report', '--target', process.env.steamid, '--match', process.env.match], (error, out, err) => {
    if(error) throw error;
    console.log(out);
});

Also, for future notice, does Titan automatically close itself after botting/failing to bot?

mellowagain commented 6 years ago

It doesn't. I may implement it if you want so.

Also, I see you're making it with node.js. Are you planning on setting up a report bot site? If yes please note that Titan is licensed under the MIT License, so just give credit and you're fine ;)

ghost commented 6 years ago

Yea but it is only for private use (only me, its an exercise project). Giving it credit right now 👍