Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ChatBot-Koneko/index.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
66 lines (56 sloc)
6.81 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!-- The Time Machine GitHub pages theme was designed and developed by Jon Rohan, on Feb 7, 2012. --> | |
<!-- Follow him for fun. http://twitter.com/jonrohan. Tail his code on https://github.com/jonrohan --> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<link rel="stylesheet" href="stylesheets/stylesheet.css" media="screen"> | |
<link rel="stylesheet" href="stylesheets/github-dark.css"> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="javascripts/script.js"></script> | |
<title>Chatbot-koneko</title> | |
<meta name="description" content="Koneko is a multifunctional discord chatbot."> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<header> | |
<h1 class="title">Chatbot-koneko</h1> | |
</header> | |
<div id="container"> | |
<p class="tagline">Koneko is a multifunctional discord chatbot.</p> | |
<div id="main" role="main"> | |
<div class="download-bar"> | |
<div class="inner"> | |
<a href="https://github.coventry.ac.uk/ricardob/ChatBot-Koneko" class="code">View Chatbot-koneko on GitHub</a> | |
</div> | |
<span class="blc"></span><span class="trc"></span> | |
</div> | |
<article class="markdown-body"> | |
<p>When the Project was presented, we didn’t know what our bot was going to be. To be honest, I’m not really sure if we can define Koneko Bot as something. What I do know is that we wanted to create something useful and fun.</p> | |
<p>Koneko is a <strong>multifunctional Discord bot</strong>. We chose Discord because it is a highly used platform and since it’s mostly for group chatting, having our extremely useful bot would make a difference. It has eight functions total: translator function, where the bot translates any word in any language; weather function, where the bot says the weather at the moment in any location; <strong>places function</strong>, where the robot says a certain type of place in a certain location; profanity decryptor, where the bot occults the swearwords he sends and every time the user says something inappropriate, the robot sends a message; cat function, function that sends facts and pictures of cats; dictionary function, where the robot says the meaning of a word, a directions function, where the bot says all the steps from going to a place to another and finally a wiki function, where the bot tells you information about something . Each one of this functions is useful to the user because he can get informed using our bot. Well except for the cat function. That just sends pictures of random cats. We also “trained” the bot incorporating twitter databases so all his responses are tweets from other people, so that makes it a little more fun and familiar to talk to.</p> | |
<p>The function I developed was the <strong>“ places function ”</strong>. I used the Google Places API to develop the function. When the user inputs, for example, “show me restaurants in Coventry”, the bot will output up to twenty results of restaurants in Coventry. In each of that result, it includes the name of the restaurant, the corresponding address and phone number, the rating, the website, if it’s open at the moment and the opening hours of the establishment. | |
To do this, I had to get my API key in order to get access to the Google Places data via a JSON file. I had no idea what was a JSON file so it was a challenge. I searched for a JSON file URL that had all the information I wanted and then I used that URL to extract all the data. Then I just formatted it in my own way to make it “pretty” to the user. This wasn’t easy for me because for a person who never programmed more than “if statements” I felt really lost. It was hard to learn how dictionaries worked, what were dictionaries even and how would I extract data from them.</p> | |
<p>This project helped me develop my Python skills definitely but beyond that, I developed some personal skills, which I consider important to get a future job. First of all, I learned how to handle situations of stress more calmly. I get really stressed when I can’t do something and when it comes to coding when the code doesn’t seem to work multiple times, it’s stressing. But everything ends up working out at the end. Another skill I gained was self-learning. I wasn’t used to do all of the work by myself, but with this project, I had to learn everything from scratch. I learned how to implement an API from scratch, a thing I thought it was impossible. I can consider team work another skill I gained. I’ve worked in teams before but not in such a big project. The communication and the ‘always be prepared to help the member of the team’ it’s not something we gain overnight but I definitely saw an improvement.</p> | |
<p>Talking about the difficulties of the project I encountered, our group didn’t communicate as much in the beginning but we then realized that constant and persistent communication in a project it’s very important if you want the project to be any good. At first, some people did the same function and had the same idea because there was no dialogue between us, for example, and that slowed us down a little bit. In terms of code, as I mentioned, the most difficult part was learning how to implement an API from scratch on a short time and actually learning what was an API. Beyond that, we should have merged the code right in the beginning because we had some difficulties doing it in the end.</p> | |
<p>To conclude my reflexion, I think our project is well-constructed and we ended up with a great chatbot that works properly and it’s fun to talk with. The way I see it, a project is never perfect or even completed. We can always add more and more but I’m glad we’re all happy with our “final” result.</p> | |
</article> | |
</div> | |
</div> | |
<footer> | |
<div class="owner"> | |
<p><a href="https://github.coventry.ac.uk/ricardob" class="avatar"><img src="https://github.coventry.ac.uk/avatars/u/2821?s=60" width="48" height="48"></a> <a href="https://github.coventry.ac.uk/ricardob">ricardob</a> maintains <a href="https://github.coventry.ac.uk/ricardob/ChatBot-Koneko">Chatbot-koneko</a></p> | |
</div> | |
<div class="creds"> | |
<small>This page generated using <a href="https://pages.github.com/">GitHub Pages</a><br>theme by <a href="https://twitter.com/jonrohan/">Jon Rohan</a></small> | |
</div> | |
</footer> | |
</div> | |
<div class="current-section"> | |
<a href="#top">Scroll to top</a> | |
<a href="https://github.coventry.ac.uk/ricardob/ChatBot-Koneko/tarball/master" class="tar">tar</a><a href="https://github.coventry.ac.uk/ricardob/ChatBot-Koneko/zipball/master" class="zip">zip</a><a href="" class="code">source code</a> | |
<p class="name"></p> | |
</div> | |
</body> | |
</html> |