GithubHelp home page GithubHelp logo

bot's Introduction

Bot - the intelligent chat bot.

Introducing bot version 3! A complete re-write has taken place to make the code a little less messy and more easily understood. Furthermore the bot now takes advantage of my module DogeChat-Bot to simplify the process.

This is an open source chat bot written in node.js for the website DogeChat found in the #bot room. It takes advantage of the socket.io-client npm module to communicate with the site as if it were a client using the chat site.

Installation

To run the bot you must first install node.js and preferably npm for installing its dependencies. From a command window located in the root directory type npm install to install the required modules.

Instructions

<par> is a required parameter, however you do not need to type the <>

[par] is an optional parameter, again you do not need to type the []

User Balances

To top up your balance simply tip bot an amount.

/tip bot <amt>

To check your balance use the !bal command as shown below.

!bal

To cashout your balance it must be over 5 DOGE. You can either cashout your whole balance or a set amount using the command below.

!cashout [amt]

[amt] is optional, if not specified your whole balance will be tipped to you. If it is specified you will withdraw this amount.

To donate part or all of your balance to the bot to help fund its future development and hosting costs then you can use the donate command shown below.

!donate [amt]

[amt] is optional, if not specified your whole balance will be donated. If it is specified you will only donate this amount.

Dice Roll Game

Once you have some DOGE in your balance you can roll the dice to gamble with it. The command is as follows.

!roll <bet>

Where is the amount you wish to bet. This will roll 2 dice and display the results. For example if you wanted to bet 20 DOGE you would type:

!roll 20

The odds for winning are as follows:

  • Double 6 - 4x your bet
  • Double - 2x your bet
  • Single 6 - 1.5x your bet

There is a 4 in 9 chance of winning a prize.

Doge Ticker

To check the latest price of DogeCoin use the command below. The price of DogeCoin is taken from Cryptsy and the price of Bitcoin for converting into fiat currencies is taken from the BitcoinAverage Price Index. To simply get the price of DogeCoin in BTC you need not specify any parameters.

!doge [amount] [currency]

Where [amount] is the amount in DogeCoin you wish to convert and [currency] is the fiat currency you wish to convert into (if not specified it will be converted to BTC). The two parameters for this command are both optional. Supported fiat currency codes are: AUD, BRL, CAD, CHF, CNY, EUR, GBP, HKD, ILS, MXN, NOK, NZD, PLN, RON, RUB, SEK, SGD, TRY, USD and ZAR.

For example if you wanted to check what 1000 DogeCoin was in GBP you could use the command as follows:

!doge 1000 GBP

This is available in multiple rooms as well as #bot at the request of certain room owners. If you want this ticker in your room PM cainy.

Currency Conversion

Due to the issues with MtGox this command does not currently work. This will be fixed ASAP.

Artificial Intelligence

Bot takes advantage of the powerful Wolfram Alpha website to bring you informative artificial intelligence. You can make queries to Wolfram Alpha using the command as shown below:

!ai <query string>

For example if you wanted to know what the weather was like in New York you could type:

!ai Whats the weather like in New York?

Or if you prefer:

!ai weather new york

To learn more about Wolfram Alpha and the ways you can use it please visit their website.

Please do not abuse or excessively use this feature. Without paying for access to Wolfram Alpha bot is limited to 2000 requests per month which isn't many at all (one every 21 minutes).

Flirting

You can flirt with other users using the command as shown below:

!flirt <user>

Where is the user you wish to flirt with.

Google Search

You can search Google and have the top result returned to you in the chat using the command as shown below:

!search <query string>

For example if you wanted to search for Bitcoin faucets you could type:

!search bitcoin faucets

YouTube Search

You can search YouTube and have the top result returned to you in the chat using the command as shown below:

!watch <query string>

For example if you wanted to search for funny cat videos you could type:

!watch funny cats

GrooveShark Search (Music)

You can search GrooveShark and have the top result returned to you in the chat using the command as shown below:

!listen <query string>

For example if you wanted to search for Moves Like Jagger you could type:

!listen moves like jagger

License

MIT License

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.