Git Product home page Git Product logo

fchatpy's Introduction

Well hello there.

My name is Lawrence, and I'm a software engineer and data scientist. You may know me as "Mevari Navalo" in FFXIV, though.

As of March 2021, I'm hired as a software dev by a company which I will hopefully stay with for the forseeable future. I have a seperate github account for my work there. In the meantime, this account will be for my personal projects and non-work related collaborations, such as bard software for the game FFXIV.

fchatpy's People

Contributors

buildabuddha avatar

Watchers

 avatar

fchatpy's Issues

Insight on your library?

I'm using your library for my attempt to create a bot. But it's not quite clear on some things - or maybe it is - I'm not a professional developer. I may be missing something.

Is there a command to have the bot wait for a specific response? Example: "What is your name?" Then the bot waits for person that executed the command to respond, store that in a variable, then reply with "Welcome, ::name::."

I can't seem to 1) have the bot wait for said response, and 2) Store response, once it is given, in a variable. The on_MSG command states the variable is 'message' But when run a print command on message, it's always just the input that triggered the command itself (i.e '!create')

Code as follows:

def on_MSG(self, character, message, channel):
        super().on_MSG(character, message, channel)
        if message == "!create":
            super().MSG("ADH-64f8d1b633ed80256a6a", "I did it!")
            basics = self.basics(character, message)
            # abilities = self.abilities(basics)
            # self.save(basics, abilities)

    def on_PRI(self, character, message):
        super().on_PRI(character, message)

    def basics(self, character, message):
        levelDict = {1: [ 25,  1,   6,   15,   2,  1,  5,    75]}
        unspoiledDesire = "ADH-xxxxxxxxxxxxxxxxxxxx"
        # As this is character creation, level will always be equal to 1, and xp always equal to 0
        playerLevel = 1
        playerXP = 0
        # Grabs character's name, and then assigns appropriate values from the dictionary above to display.
        super().PRI(character, "What is your characters name? ")
        time.sleep(10)
        super().MSG(unspoiledDesire, message)`

From my understanding, message should at least be "What is your characters name? " As that was the last string stored in the variable, message.

Thanks

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.