Removing Uptime from Titleinfo

#1

PhantomBot Version: 2.3.9.1b
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
From:
message = $.replace(message, ‘(titleinfo)’, $.lang.get(‘streamcommand.title.online’, $.getStatus($.channelName), String($.getStreamUptime($.channelName))));

To:
message = $.replace(message, ‘(titleinfo)’, $.lang.get(‘streamcommand.title.online’, $.getStatus($.channelName)));

Which now gives me the output
Offline:
Current Status: Divinity: OS II /w Axarrey (9) #mostlyblind
Online:
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

#2

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

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

With:
$.lang.register('streamcommand.title.online', 'Current Status: $1.');

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

1 Like
#3

Thanks a lot

1 Like
#4

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

Cheers!

#5

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.