Ticket #350 (reopened task)

Opened 15 months ago

Last modified 5 months ago

Create pubbot module 'pubbotchatlog'

Reported by: Maverick Owned by: Dexter
Priority: normal Component: Bots - PubHub/PubBot
Version: Latest version from repository Severity: minor
Keywords: Cc:

Description (last modified by Maverick) (diff)

In the (old and soon to be replaced) pubbot module pubbotchat I have made a command !last that showed a number of last logged chat lines.
The staff appreciated this command as it could be used to determine if a player was having a racist conversation or was only accidently using a racist word.

Unfortunately this module got disabled because it was hogging too much server recourses and thus the command couldn't be used anymore. The staff has expressed that they would like to have this command back, so this is the reason for this ticket.

Simply put - copy the functionality from the pubbotchat module and copy it into a new pubbot module - pubbotchatlog. The only purpose of this module is to have the !last command (or !chatlog) which shows a number of last (public / team / arena) chat lines.

Attachments

Change History

  Changed 15 months ago by Maverick

  • description modified (diff)

  Changed 12 months ago by Maverick

  • owner nobody deleted

follow-up: ↓ 4   Changed 7 months ago by Maverick

Dezmond (or Dexter), mind taking a look at this task?

in reply to: ↑ 3   Changed 6 months ago by Dexter

  • owner set to Dexter
  • status changed from new to assigned

Replying to Maverick:

Dezmond (or Dexter), mind taking a look at this task?

  Changed 6 months ago by Dexter

  • status changed from assigned to closed
  • resolution set to fixed

  Changed 5 months ago by Maverick

  • status changed from closed to reopened
  • resolution fixed deleted

Dexter, I tried the module and this was the response I got:

  Maverick> !last 10
   PubBot3>     Sexy-Dan> he been looking
   PubBot3>   ip:6--------  timezonebias:300  freq:0  typedname:burg  demo:0  machineid:---------
   PubBot3>   ping:60ms  lowping:60ms  highping:90ms  aveping:60ms
   PubBot3>   loss: s2c:0.1%  c2s:0.0%  s2cweapons:0.0%  s2c_relout:0(0)
   PubBot3>   s2c:7278-->7235  c2s:4116-->4132
   PubBot3>   c2s current: slow:0 fast:84 0.0%   total: slow:0 fast:3006 0.0%
   PubBot3>   s2c current: slow:0 fast:1043 0.0%   total: slow:0 fast:1619 0.0%
   PubBot3>   time: session:    0:08:00  total:15552:20:00  created: 10-30-2005 03:58:27
   PubBot3>   bytes/sec:582  lowbandwidth:0  messagelogging:0  connecttype:unknownnotras
   PubBot3>   burg: userid: 3216382  res: 1680x1050  client: continuum 0.40  proxy: not using proxy  idle: 0 s  timer drift: 0

Can you filter out the responses from the *info command the bot does?

  Changed 5 months ago by Maverick

Related changesets [3550] and [3551].

Dexter, I checked the current souce code and found out what has caused this behaviour:

String message = event.getMessage().toLowerCase();

pubbotchatlog.java:18

If you remove the .toLowerCase() part, all .startsWith() statements will work properly again.

  Changed 5 months ago by Maverick

Related changeset [3552]

Hm now we've seem to have forgotten the output of the *einfo command. This was added for pubstats which was created after pubbotchat module got ditched.

   PubBot0>   Gargle: UserId: 3868639  Res: 1408x836  Client: Continuum 0.40  Proxy: Not using proxy  Idle: 0 s  Timer drift: 0
   PubBot0>     CRu57y Ch0D3> eat
   PubBot0>     Zepto> hgdfs lkgdasflkjhdsa f;lkhfads
   PubBot0>   Haunt: UserId: 1321923  Res: 1280x800  Client: Continuum 0.40  Proxy: Not using proxy  Idle: 0 s  Timer drift: 0
   PubBot0>   Athila: UserId: 3549065  Res: 1024x768  Client: Continuum 0.40  Proxy: Not using proxy  Idle: 0 s  Timer drift: 0
   PubBot0>   Jebass: UserId: 1768142  Res: 1280x800  Client: Continuum 0.40  Proxy: Using NAT  Idle: 0 s  Timer drift: 0
   PubBot0>   Vatican Assassin: UserId: 2144732  Res: 1280x1024  Client: Continuum 0.40  Proxy: Not using proxy  Idle: 0 s  Timer drift: 0
   PubBot0>   XaNiTH: UserId: 1302893  Res: 1440x900  Client: Continuum 0.40  Proxy: Not using proxy  Idle: 0 s  Timer drift: 0
   PubBot0>     CRu57y Ch0D3> fu spawner
   PubBot0>     CRu57y Ch0D3> ur fucked

Mind taking another shot at it? :)

Add/Change #350 (Create pubbot module 'pubbotchatlog')

Author


E-mail address and user name can be saved in the Preferences.


Action
as reopened
 
Note: See TracTickets for help on using tickets.