Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
arfevrier committed Nov 8, 2017
1 parent e1a4dd6 commit e0b7bfd
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

## Installation
- npm install [discord.js, request, mysql]
- config sql server with discord_connect4.sql
- Adapt the code
- Launch play_connect_4.js
83 changes: 83 additions & 0 deletions discord_connect4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
-- phpMyAdmin SQL Dump
-- version 4.7.2
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : mer. 08 nov. 2017 à 18:04
-- Version du serveur : 10.0.30-MariaDB-0+deb8u1
-- Version de PHP : 7.0.18-1~dotdeb+8.1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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 utf8mb4 */;

--
-- Base de données : `discord_connect4`
--

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

--
-- Structure de la table `channel_blacklisted`
--

CREATE TABLE `channel_blacklisted` (
`channel_id` varchar(25) NOT NULL,
`guild_id` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;

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

--
-- Structure de la table `channel_whitelist`
--

CREATE TABLE `channel_whitelist` (
`channel_id` varchar(25) NOT NULL,
`guild_id` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Structure de la table `number_party_started`
--

CREATE TABLE `number_party_started` (
`date` date NOT NULL,
`number` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Index pour les tables déchargées
--

--
-- Index pour la table `channel_blacklisted`
--
ALTER TABLE `channel_blacklisted`
ADD PRIMARY KEY (`channel_id`);

--
-- Index pour la table `channel_whitelist`
--
ALTER TABLE `channel_whitelist`
ADD PRIMARY KEY (`channel_id`);

--
-- Index pour la table `number_party_started`
--
ALTER TABLE `number_party_started`
ADD PRIMARY KEY (`date`);
COMMIT;

/*!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 */;

0 comments on commit e0b7bfd

Please sign in to comment.