Removing Uptime from Titleinfo


PhantomBot Version:
OS Version: Windows 10 10.0 (amd64)
Java Version: 1.8.0_151
Browser and Version (for Panel Support):
Stock PhantomBot: no

What I am trying to do is remove uptime from Title Info. What I so far was edit line 307 in customCommands
message = $.replace(message, ‘(titleinfo)’, $.lang.get(‘’, $.getStatus($.channelName), String($.getStreamUptime($.channelName))));

message = $.replace(message, ‘(titleinfo)’, $.lang.get(‘’, $.getStatus($.channelName)));

Which now gives me the output
Current Status: Divinity: OS II /w Axarrey (9) #mostlyblind
Current Status: Divinity: OS II /w Axarrey (9) #mostlyblind. Uptime: $2

So I just want it to not call the uptime when I point at title info unless there is already a pointer for just title I could not find


You actually want to create a custom lang file of: commands-streamCommands.js

And replace:
$.lang.register('', 'Current Status: $1. Uptime: $2');

$.lang.register('', 'Current Status: $1.');

For more info on editing custom lang files, see this:

1 Like

Thanks a lot

1 Like

You can simply delete the title command and do this. !addcom !title Current status: (status)



Okay even easier thanks a lot

closed #6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.