Browse Source

Updated readme to include MySQL requirements.

Added SQL database import.
tags/3.0.4
Teknikode 4 years ago
parent
commit
a7d9aff42e
2 changed files with 233 additions and 2 deletions
  1. 220
    0
      Database.sql
  2. 13
    2
      readme.md

+ 220
- 0
Database.sql View File

@@ -0,0 +1,220 @@
-- phpMyAdmin SQL Dump
-- version 4.0.0
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 24, 2015 at 01:15 PM
-- Server version: 5.6.11-log
-- PHP Version: 5.4.15

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `combot`
--

-- --------------------------------------------------------

--
-- Table structure for table `channeljoins`
--

CREATE TABLE IF NOT EXISTS `channeljoins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12787 ;

-- --------------------------------------------------------

--
-- Table structure for table `channelkicks`
--

CREATE TABLE IF NOT EXISTS `channelkicks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`kicked_nick_id` int(11) NOT NULL,
`reason` varchar(500) CHARACTER SET utf8mb4 NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=382 ;

-- --------------------------------------------------------

--
-- Table structure for table `channelmessages`
--

CREATE TABLE IF NOT EXISTS `channelmessages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`message` text NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=119151 ;

-- --------------------------------------------------------

--
-- Table structure for table `channelparts`
--

CREATE TABLE IF NOT EXISTS `channelparts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=590 ;

-- --------------------------------------------------------

--
-- Table structure for table `channelrules`
--

CREATE TABLE IF NOT EXISTS `channelrules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`rule` text CHARACTER SET utf8mb4 NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;

-- --------------------------------------------------------

--
-- Table structure for table `channels`
--

CREATE TABLE IF NOT EXISTS `channels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`Name` varchar(50) CHARACTER SET utf8mb4 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=42 ;

-- --------------------------------------------------------

--
-- Table structure for table `introductions`
--

CREATE TABLE IF NOT EXISTS `introductions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`message` text CHARACTER SET utf8mb4 NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=136 ;

-- --------------------------------------------------------

--
-- Table structure for table `messages`
--

CREATE TABLE IF NOT EXISTS `messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`sender_nick_id` int(11) NOT NULL,
`message` text NOT NULL,
`anonymous` tinyint(1) NOT NULL,
`date_posted` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=173 ;

-- --------------------------------------------------------

--
-- Table structure for table `nickinfo`
--

CREATE TABLE IF NOT EXISTS `nickinfo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nick_id` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`realname` varchar(50) NOT NULL,
`host` varchar(100) NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `nicks`
--

CREATE TABLE IF NOT EXISTS `nicks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`nickname` varchar(50) CHARACTER SET utf8mb4 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2429 ;

-- --------------------------------------------------------

--
-- Table structure for table `privatemessages`
--

CREATE TABLE IF NOT EXISTS `privatemessages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`message` text CHARACTER SET utf8mb4 NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=352 ;

-- --------------------------------------------------------

--
-- Table structure for table `quits`
--

CREATE TABLE IF NOT EXISTS `quits` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL,
`nick_id` int(11) NOT NULL,
`message` varchar(500) CHARACTER SET utf8mb4 NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7470 ;

-- --------------------------------------------------------

--
-- Table structure for table `servers`
--

CREATE TABLE IF NOT EXISTS `servers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(50) CHARACTER SET utf8mb4 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

+ 13
- 2
readme.md View File

@@ -27,14 +27,25 @@ Combot is designed to provide an all-in-one solution for those who wish to run a
* Nick Last Seen
* SED

## Requirements

* MySQL v5.5 or greater
* .NET Framework v4.5.1

## Installation - Windows

1) Download the Release.zip from the latest release in https://github.com/uncled1023/Combot/releases and extract the files to a directory of your choice.<br>
2) Run Combot-Interface.exe
2) Edit Combot.Servers.config to configure the bot for the correct servers, channels, owner information, and MySQL database.
3) If the database has not been created yet, import Database.sql from the master branch into the database.
4) Run Combot-Interface.exe

## Installation - Linux

This is currently untested and not supported. Due to the interface using WPF, Mono is unable to run the current interface on Linux machines. In the future I may make an interface that does not utilize WPF for those on Linux.
This is currently untested and not supported. If you would like to venture into the realm of unreliability and errors, you can try running the Console Interface in Mono.

## Building

To fully maximise the potential of Combot's ease of development, Visual Studios 13 should be installed. If you have Visual Studios installed, you can add **Module Template.zip** to your project templates to easily create new modules. If you do not want to use a template, you can copy an existing module and work from there.

## Bugs/Feature Requests


Loading…
Cancel
Save