Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 2 - Creating a Interfaceable Chat Bot You will want to first create a simple program that can connect to the Chat Server. The

PART 2 - Creating a Interfaceable Chat Bot

You will want to first create a simple program that can connect to the Chat Server. The chatserver we will be using is called FreeNode. Here is some sample code to s

Use Java.Net Library to create a Chat Server

Directions are provided below

You will expose your bot so anyone can interact with it

Check next page for code sample

When the bots connected to the group chat it should read the messages and when a message matches a command it respond accordingly. This means if someone says Weather 75080 it should return parse the words and query the weather API and return the information in a IRC-friendly format (The weathers going to be X with a high of Y and a low of Z.

Use command phrases that trigger a response

Weather 75080

Hows the weather in 75080?

Use your wrapper and respond accordingly.

It doesnt have to use Natural Language Processing, keywords is fine

Here is some code to get you started with connecting to a bot on Freenode: http://archive.oreilly.com/pub/h/1966

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions