List of commits:
Subject Hash Author Date (UTC)
Updated example. e95d1599676ae10b950b2c069e666060005627cf Detche 2016-11-13 19:52:41
Added scheduler to task core. Modified comm for new event. ed51d5d18684dabdb17675294727ad5e8b8af454 Detche 2016-11-13 19:44:05
Started adding possibility to save in database. cf28a7731335cd1ffd2ebd03cc2e890c25e1c64b Detche 2016-11-13 19:43:21
Changed db interface and users/groups models. d0fdf8873a107c44d6acbef5cbffc869461d9aab Detche 2016-11-03 15:22:10
Changed UserId from element to attribute. 5407592cba9e7488519e069927a8ffb9ed32fdf6 Detche 2016-11-02 15:02:30
Added tasks system. 13bbf9857a0a61d5e2b0fd9483f5efd235cbd4f2 Detche 2016-11-02 14:58:20
Modified Knowledge process. Fixed indent 28e52095a297cbb0e6b9b6d799bb80ebe52828c1 Detche 2016-10-23 12:11:30
Updated README 8e298151286ec3cb4df29633aaca90fc871f2e80 Detche 2016-10-23 10:10:45
Update README.rst 7965df28cbef557fd3819919b4d44f0733dcecf0 Guillaume 2016-10-23 00:06:05
Added README page 8339ac5b13803b026dbfc5edd77fa50a24a70ecb Detche 2016-10-22 23:47:05
Added comments to sources. ce6491ef1337ea34d33b7e4ede0eb9f634e7ab1a Detche 2016-10-22 23:32:26
Added examples. Modified reaction class to add triggers. 545a35d1c5bb36e1b4e4d818b0e6a8f6642a222f Detche 2016-10-22 20:56:54
Initial commit 2cd79df6224290a994b1453f0327740816b0f632 Detche 2016-10-21 16:21:02
Commit e95d1599676ae10b950b2c069e666060005627cf - Updated example.
Author: Detche
Author date (UTC): 2016-11-13 19:52
Committer name: Detche
Committer date (UTC): 2016-11-13 19:52
Parent(s): ed51d5d18684dabdb17675294727ad5e8b8af454
Signing key:
Tree: cf1448db1a37b054ba53b733cfcd18ac4b85c7fc
File Lines added Lines deleted
examplebot/botdb.xml 6 5
examplebot/tasks/EMPTY.py.example 10 8
File examplebot/botdb.xml changed (mode: 100644) (index ab1844e..04e09e0)
4 4 <DiscordToken>YOUR_DISCORD_TOKEN</DiscordToken> <DiscordToken>YOUR_DISCORD_TOKEN</DiscordToken>
5 5 <CacheMaxMessages>100</CacheMaxMessages> <CacheMaxMessages>100</CacheMaxMessages>
6 6 <DefaultChannelId>DEFAULT_CHANNEL_ID</DefaultChannelId> <DefaultChannelId>DEFAULT_CHANNEL_ID</DefaultChannelId>
7 <MinimumTaskTimeout>10</MinimumTaskTimeout>
8 <MaximumTaskDaysLookup>15</MaximumTaskDaysLookup>
7 9 </Settings> </Settings>
8 10 <Knowledge> <Knowledge>
9 11 <Users> <Users>
10 <User Id="222656549456314368">
11 <Alias>Detche</Alias>
12 <User Id="A_USER_ID">
13 <Alias>Toto</Alias>
12 14 <BotAffinity>0</BotAffinity> <BotAffinity>0</BotAffinity>
13 15 <IsMaster>1</IsMaster> <IsMaster>1</IsMaster>
14 16 </User> </User>
15 17 </Users> </Users>
16 18 <Groups> <Groups>
17 <Group Id="1">
18 <Referrer>222658568346796032</Referrer>
19 <Group Id="A_GROUP_ID">
19 20 <Members> <Members>
20 <Member>222658568346796032</Member>
21 <Member>A_USER_ID</Member>
21 22 </Members> </Members>
22 23 </Group> </Group>
23 24 </Groups> </Groups>
File examplebot/tasks/EMPTY.py.example changed (mode: 100644) (index fa384ee..74f7dca)
1 from datetime import time
2
1 3 import discord import discord
2 4
3 from botly.task import TaskBase
5 import botly.task
4 6
5 7
6 class Task(TaskBase):
8 class Task(botly.task.TaskBase):
7 9
8 def __init__(self):
9 pass
10
11 def get_next_timeout(self):
12 # Return the timeout for next do() call
13 return 10
10 def init(self):
11 # Init here. Eg:
12 #self.set_interval(60)
13 # or
14 #self.set_schedule(botly.task.DAYS_WEEKDAYS, time(hour=8))
14 15
15 16 def do(self): def do(self):
16 17 # Do task action here # Do task action here
18
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/detche/Botly

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/detche/Botly

Clone this repository using git:
git clone git://git.rocketgit.com/user/detche/Botly

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main