Giter Site home page Giter Site logo

ircpybots's Introduction

ircpybots

IRC robots written in python

samplebot is a demo robot you can modify. It connects to a channel and responds to two type of messages: if you mention its name, it will say hi to you. If you start a message with “hay”, it will ask how you are, and then respond to your answer.

Storybot tells you an interactive branching story. If you don’t like it, you can say “No! D:” and change the story’s flow. Storybot’s story management logic lives in a separate file, so you can use it to make your own non-irc based interactive stories! say "storytime!" to start the story.

To run either robot, you should be able to just run the samplebot.py or storybot.py file using Python. The robot will connect and join the channel that's specified in the file. It will continue printing debugging information to the console.

ircpybots's People

Contributors

yanamal avatar

Watchers

 avatar  avatar

Forkers

doceon

ircpybots's Issues

Case insensitivity

Make commands (paths) case-insensitive when comparing them. (standardize to lower?)

Save play data

Save data on what players have tried to do, make it easy for people to add options that are frequently used but not there yet.

paths should have descriptions too!

We should change the data structure so that when you take a path, there is also a short blurb of text that describes what happens.

For example, if you do something that kills you, the path description should be why you died.

Or, if you are climbing a tree, the path description could be something like "you climb up the tree. it takes a looong time."

Fix game over/restart logic

It's all messed up. I should really fix it.
Hack for now: make "start over" action from DEATH or WIN when you're playing.

When you hit an end state (DEATH or WIN) and change it, the game should stop being over.

When you hit any state, including DEATH or WIN, you can say "No! D:" in order to change the path you just took.
Then the game places you in the new place.
However, when you hit the DEATH or WIN state, the game ends. And it does not go back to a not-over state when you change the path. So then you have to start over (and it's not even obvious).

The game should roll back to being not over when you change the path after dying/winning.

Synonyms support

For example, n = North = north etc.

If the user tells you that n should point to the same point as North, ask them if n and North are synonyms; if so, they should be used interchangeably in all the places.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.