bntext(5)

๐Ÿ’– NAME ๐Ÿ’–

okay so bestie, this is bntext โ€” the manual for the lil text files that feed your Unix Battle.net daemon all its messages โœจ

the actual files are bnmotd.txt, bnnews.txt and bnissue.txt ๐ŸŒธ


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so here's the tea, and it's genuinely so cute. bnmotd.txt holds the text that bnetd(1) shows off when people first log into the server ๐Ÿ‘‘ first impressions, main character energy, etc.

then bnnews.txt is the one that pops up when someone runs the /news chat command ๐Ÿ“ฐโœจ

and the files themselves? just raw text, but with printf-style formatting escapes sprinkled through them like glitter. every line of a file can start with a type formatter from this list ๐ŸŽ€:

  • %B โ€” use the broadcast attribute (???).
  • %C โ€” execute the line as if the user typed it in as a command ๐Ÿ‘€ like, actually runs it.
  • %E โ€” use the error attribute (red). red red red ๐Ÿšจ
  • %I โ€” use the info attribute (yellow). this one is the same was %W.
  • %M โ€” normal chat message (white). it'll show up looking like the user said it ๐Ÿ’ฌ
  • %T โ€” emote chat message (???). this one also shows up like the user said it ๐Ÿ™ˆ
  • %W โ€” use the warning attribute (yellow). this is the same was %I.

and within a line, you can drop in any of these format formatters ๐Ÿ’…:

  • %% โ€” expands to a literal percent sign (%). classic escape behaviour, love that for us.
  • %a โ€” expands to the number of accounts on the server ๐Ÿ”ข
  • %c โ€” expands to the number of channels on the server. this counts all permanent channels and all the current temporary ones ๐ŸŒˆ
  • %g โ€” expands to the number of games on the server. this counts both public and private (passworded) games ๐ŸŽฎ
  • %h โ€” expands to the hostname of the server (as returned by gethostname(2)) ๐Ÿ–ฅ๏ธ
  • %i โ€” expands to this user's account ID number, formatted with a leading pound (#) sign and leading zeros ๐Ÿ’œ
  • %l โ€” expands to this user's current chat name, which is usually the same
  • %r โ€” expands to the IP of the remote machine (the client) ๐ŸŒ
  • %t โ€” expands to the four character client tag ๐Ÿท๏ธ
  • %u โ€” expands to the number of users logged into the server ๐Ÿ‘ฏ
  • %v โ€” expands to the version number of the server โญ

๐ŸŒŸ SEE ALSO ๐ŸŒŸ


๐Ÿซถ AUTHOR ๐Ÿซถ

Ross Combs (ross@bnetd.org) โ€” thank you for your service, legend ๐Ÿ’–


okay that's the whole page!! sending you the biggest hugs, this one is from the File Formats Manual, version bntext(5), dated 2 August, 2001 ๐ŸŽ€โœจ go forth and configure your daemon messages, bestie ๐Ÿ’…

๐Ÿ“ฆ where this page comes from