GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UnNetHack/pinobot: IRC Bot that can report monster information for NetHack and many of its variants

BranchesTags
Open more actions menu

Latest commit

 

History

195 Commits
195 Commits

Folders and files

NameName
Last commit message
Last commit date
commands
commands
 
 
exe
exe
 
 
lib
lib
 
 
monsterdb
monsterdb
 
 
patch
patch
 
 
variants
variants
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Setup.hs
Setup.hs
 
 
cabal.project
cabal.project
 
 
find_unimplemented_attacks.py
find_unimplemented_attacks.py
 
 
known_issues.md
known_issues.md
 
 
pinobot.cabal
pinobot.cabal
 
 
pinobot_config.toml
pinobot_config.toml
 
 

Repository files navigation

Pinobot

This is a NetHack monster information IRC bot.

Bot commands

NetHack 5:          @?monster
NetHack 5:          @v?monster   (alias for just @?)
NetHack 3.7:        @v37?monster
UnNetHack:          @u?monster
NetHack 3.4.3:      @V?monster
UnNetHackPlus:      @u+?monster
SporkHack:          @s?monster
GruntHack:          @g?monster
Slash'EM:           @l?monster
Slash'EM Extended:  @le?monster
SlashTHEM:          @lt?monster
NetHack Brass:      @b?monster
dNetHack:           @d?monster
notdNethack:        @n?monster
notnotdNethack:     @nn?monster
EvilHack:           @e?monster
XNetHack:           @x?monster
SpliceHack:         @sp?monster
Hack'EM:            @h?monster
CrecelleHack:       @c?monster

How to run

Pinobot is made up of two components:

  • pinobot-frontend : This part connects to IRC network.
  • pinobot-monsterdb : This part connects to pinobot-frontend.

This design allows you to independently upgrade pinobot-monsterdb, without needing to disconnect Pinobot from IRC.

There is a file called pinobot_config.toml in the root of this repository. When you run pinobot, it will look for this file to figure out where it should connect, what nickname it should use, etc.

# Assuming cabal and ghc are installed.

# Terminal 1
$ cabal new-run pinobot-frontend

# Terminal 2, after `pinobot-frontend` has launched
$ cabal new-run pinobot-monsterdb

How to make Pinobot join and leave channels

cabal new-run pinobot-join '#foobar'
cabal new-run pinobot-part '#foobar'

How to make Pinobot monsterdb less flashy at start-up

Set NO_PINOBOT_POMPOUSNESS environment variable to any value. If it is defined, Pinobot will assume standard output does not understand colors, unicode and will not assume any terminal size.

The "pompousness" is only used to make the launch of monsterdb executable very flashy and pompous. It does not do anything else. Normally Pinobot will try to determine from its environment if it is in a Unicode-locale enabled terminal.

See lib/Terminal.hs for the implementation.

Patch

The NetHack code that was used in the generation of monster data is given as a patch in patch/unixmain.patch. You need to patch the file sys/unix/unixmain.c with that patch file.

You don't need to mess with the patch file unless you are a developer and want to hack with the data for some reason.

About

IRC Bot that can report monster information for NetHack and many of its variants

Resources

Readme
MIT license
Activity
Custom properties

Stars

7 stars

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.